diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index d12aa17e..c83beb26 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v4 + uses: actions/checkout@v4.1.1 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/build_and_lint.yml b/.github/workflows/build_and_lint.yml index 832555d7..778f0c87 100644 --- a/.github/workflows/build_and_lint.yml +++ b/.github/workflows/build_and_lint.yml @@ -13,7 +13,7 @@ jobs: name: Code quality runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.1.1 - name: Corepack run: corepack enable @@ -27,10 +27,10 @@ jobs: - 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 -- +# - name: All generated code is commited +# run: | +# git update-index --refresh +# git diff-index --exit-code --name-status HEAD -- build: name: Build @@ -41,7 +41,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/test_ee.yml b/.github/workflows/test_ee.yml index 21d6fadd..804492ab 100644 --- a/.github/workflows/test_ee.yml +++ b/.github/workflows/test_ee.yml @@ -23,7 +23,7 @@ jobs: KURRENT_VERSION: "24.2.0-jammy" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - uses: actions/setup-node@v4 with: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 93b6389c..f33524a9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,7 @@ on: jobs: build-and-test: + timeout-minutes: 10 name: "${{ matrix.group.name }}" strategy: fail-fast: false @@ -36,7 +37,7 @@ jobs: path: ./src/opentelemetry runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.1.1 - name: Login to Cloudsmith uses: docker/login-action@v3 diff --git a/packages/db-client/generated/core_grpc_pb.js b/packages/db-client/generated/core_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/packages/db-client/generated/core_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/core_pb.d.ts b/packages/db-client/generated/core_pb.d.ts new file mode 100644 index 00000000..50ae0640 --- /dev/null +++ b/packages/db-client/generated/core_pb.d.ts @@ -0,0 +1,30 @@ +// package: kurrentdb.protocol.registry.v2 +// file: core.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; + +export class ErrorDetails extends jspb.Message { + getCode(): string; + setCode(value: string): ErrorDetails; + getMessage(): string; + setMessage(value: string): ErrorDetails; + + 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 = { + code: string, + message: string, + } +} diff --git a/packages/db-client/generated/core_pb.js b/packages/db-client/generated/core_pb.js new file mode 100644 index 00000000..5a4a95c5 --- /dev/null +++ b/packages/db-client/generated/core_pb.js @@ -0,0 +1,206 @@ +// source: 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)); + +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ErrorDetails', 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.registry.v2.ErrorDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ErrorDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.registry.v2.ErrorDetails'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will 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.registry.v2.ErrorDetails.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.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.registry.v2.ErrorDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ErrorDetails.toObject = function(includeInstance, msg) { + var f, obj = { + code: jspb.Message.getFieldWithDefault(msg, 1, ""), + message: 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.registry.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.registry.v2.ErrorDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ErrorDetails; + return proto.kurrentdb.protocol.registry.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.registry.v2.ErrorDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.registry.v2.ErrorDetails.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 {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.registry.v2.ErrorDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.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.registry.v2.ErrorDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ErrorDetails.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCode(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMessage(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string code = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.getCode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.ErrorDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.setCode = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string message = 2; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.getMessage = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.ErrorDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.ErrorDetails.prototype.setMessage = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2); diff --git a/packages/db-client/generated/registry/groups_grpc_pb.js b/packages/db-client/generated/registry/groups_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/packages/db-client/generated/registry/groups_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/registry/groups_pb.d.ts b/packages/db-client/generated/registry/groups_pb.d.ts new file mode 100644 index 00000000..7b1e8419 --- /dev/null +++ b/packages/db-client/generated/registry/groups_pb.d.ts @@ -0,0 +1,474 @@ +// package: kurrentdb.protocol.registry.v2 +// file: registry/groups.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as google_protobuf_field_mask_pb from "google-protobuf/google/protobuf/field_mask_pb"; +import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; +import * as google_protobuf_wrappers_pb from "google-protobuf/google/protobuf/wrappers_pb"; +import * as registry_shared_pb from "../registry/shared_pb"; + +export class AutoRegistrationSettings extends jspb.Message { + getEnabled(): boolean; + setEnabled(value: boolean): AutoRegistrationSettings; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AutoRegistrationSettings.AsObject; + static toObject(includeInstance: boolean, msg: AutoRegistrationSettings): AutoRegistrationSettings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AutoRegistrationSettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AutoRegistrationSettings; + static deserializeBinaryFromReader(message: AutoRegistrationSettings, reader: jspb.BinaryReader): AutoRegistrationSettings; +} + +export namespace AutoRegistrationSettings { + export type AsObject = { + enabled: boolean, + } +} + +export class ValidationSettings extends jspb.Message { + getEnabled(): boolean; + setEnabled(value: boolean): ValidationSettings; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ValidationSettings.AsObject; + static toObject(includeInstance: boolean, msg: ValidationSettings): ValidationSettings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ValidationSettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ValidationSettings; + static deserializeBinaryFromReader(message: ValidationSettings, reader: jspb.BinaryReader): ValidationSettings; +} + +export namespace ValidationSettings { + export type AsObject = { + enabled: boolean, + } +} + +export class CompatibilitySettings extends jspb.Message { + getEnforce(): boolean; + setEnforce(value: boolean): CompatibilitySettings; + getMode(): registry_shared_pb.CompatibilityMode; + setMode(value: registry_shared_pb.CompatibilityMode): CompatibilitySettings; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CompatibilitySettings.AsObject; + static toObject(includeInstance: boolean, msg: CompatibilitySettings): CompatibilitySettings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CompatibilitySettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CompatibilitySettings; + static deserializeBinaryFromReader(message: CompatibilitySettings, reader: jspb.BinaryReader): CompatibilitySettings; +} + +export namespace CompatibilitySettings { + export type AsObject = { + enforce: boolean, + mode: registry_shared_pb.CompatibilityMode, + } +} + +export class DataFormatSettings extends jspb.Message { + getEnforce(): boolean; + setEnforce(value: boolean): DataFormatSettings; + getFormat(): registry_shared_pb.SchemaDataFormat; + setFormat(value: registry_shared_pb.SchemaDataFormat): DataFormatSettings; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DataFormatSettings.AsObject; + static toObject(includeInstance: boolean, msg: DataFormatSettings): DataFormatSettings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DataFormatSettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DataFormatSettings; + static deserializeBinaryFromReader(message: DataFormatSettings, reader: jspb.BinaryReader): DataFormatSettings; +} + +export namespace DataFormatSettings { + export type AsObject = { + enforce: boolean, + format: registry_shared_pb.SchemaDataFormat, + } +} + +export class StreamFilter extends jspb.Message { + getFilterType(): StreamFilterType; + setFilterType(value: StreamFilterType): StreamFilter; + getExpression(): string; + setExpression(value: string): StreamFilter; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamFilter.AsObject; + static toObject(includeInstance: boolean, msg: StreamFilter): StreamFilter.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamFilter, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamFilter; + static deserializeBinaryFromReader(message: StreamFilter, reader: jspb.BinaryReader): StreamFilter; +} + +export namespace StreamFilter { + export type AsObject = { + filterType: StreamFilterType, + expression: string, + } +} + +export class StreamFilterSettings extends jspb.Message { + getEnforce(): boolean; + setEnforce(value: boolean): StreamFilterSettings; + + hasFilter(): boolean; + clearFilter(): void; + getFilter(): StreamFilter | undefined; + setFilter(value?: StreamFilter): StreamFilterSettings; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): StreamFilterSettings.AsObject; + static toObject(includeInstance: boolean, msg: StreamFilterSettings): StreamFilterSettings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: StreamFilterSettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): StreamFilterSettings; + static deserializeBinaryFromReader(message: StreamFilterSettings, reader: jspb.BinaryReader): StreamFilterSettings; +} + +export namespace StreamFilterSettings { + export type AsObject = { + enforce: boolean, + filter?: StreamFilter.AsObject, + } +} + +export class SchemaGroupDetails extends jspb.Message { + getName(): string; + setName(value: string): SchemaGroupDetails; + + hasDescription(): boolean; + clearDescription(): void; + getDescription(): string | undefined; + setDescription(value: string): SchemaGroupDetails; + + getTagsMap(): jspb.Map; + clearTagsMap(): void; + + hasAutoRegistration(): boolean; + clearAutoRegistration(): void; + getAutoRegistration(): AutoRegistrationSettings | undefined; + setAutoRegistration(value?: AutoRegistrationSettings): SchemaGroupDetails; + + hasValidation(): boolean; + clearValidation(): void; + getValidation(): ValidationSettings | undefined; + setValidation(value?: ValidationSettings): SchemaGroupDetails; + + hasCompatibility(): boolean; + clearCompatibility(): void; + getCompatibility(): CompatibilitySettings | undefined; + setCompatibility(value?: CompatibilitySettings): SchemaGroupDetails; + + hasDataFormat(): boolean; + clearDataFormat(): void; + getDataFormat(): DataFormatSettings | undefined; + setDataFormat(value?: DataFormatSettings): SchemaGroupDetails; + + hasStreamFilter(): boolean; + clearStreamFilter(): void; + getStreamFilter(): StreamFilterSettings | undefined; + setStreamFilter(value?: StreamFilterSettings): SchemaGroupDetails; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SchemaGroupDetails.AsObject; + static toObject(includeInstance: boolean, msg: SchemaGroupDetails): SchemaGroupDetails.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SchemaGroupDetails, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SchemaGroupDetails; + static deserializeBinaryFromReader(message: SchemaGroupDetails, reader: jspb.BinaryReader): SchemaGroupDetails; +} + +export namespace SchemaGroupDetails { + export type AsObject = { + name: string, + description?: string, + + tagsMap: Array<[string, string]>, + autoRegistration?: AutoRegistrationSettings.AsObject, + validation?: ValidationSettings.AsObject, + compatibility?: CompatibilitySettings.AsObject, + dataFormat?: DataFormatSettings.AsObject, + streamFilter?: StreamFilterSettings.AsObject, + } +} + +export class SchemaGroup extends jspb.Message { + getGroupId(): string; + setGroupId(value: string): SchemaGroup; + + hasDetails(): boolean; + clearDetails(): void; + getDetails(): SchemaGroupDetails | undefined; + setDetails(value?: SchemaGroupDetails): SchemaGroup; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): SchemaGroup; + + hasUpdatedAt(): boolean; + clearUpdatedAt(): void; + getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): SchemaGroup; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SchemaGroup.AsObject; + static toObject(includeInstance: boolean, msg: SchemaGroup): SchemaGroup.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SchemaGroup, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SchemaGroup; + static deserializeBinaryFromReader(message: SchemaGroup, reader: jspb.BinaryReader): SchemaGroup; +} + +export namespace SchemaGroup { + export type AsObject = { + groupId: string, + details?: SchemaGroupDetails.AsObject, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class CreateSchemaGroupRequest extends jspb.Message { + + hasGroupId(): boolean; + clearGroupId(): void; + getGroupId(): string | undefined; + setGroupId(value: string): CreateSchemaGroupRequest; + + hasDetails(): boolean; + clearDetails(): void; + getDetails(): SchemaGroupDetails | undefined; + setDetails(value?: SchemaGroupDetails): CreateSchemaGroupRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateSchemaGroupRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateSchemaGroupRequest): CreateSchemaGroupRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateSchemaGroupRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateSchemaGroupRequest; + static deserializeBinaryFromReader(message: CreateSchemaGroupRequest, reader: jspb.BinaryReader): CreateSchemaGroupRequest; +} + +export namespace CreateSchemaGroupRequest { + export type AsObject = { + groupId?: string, + details?: SchemaGroupDetails.AsObject, + } +} + +export class CreateSchemaGroupResponse extends jspb.Message { + getGroupId(): string; + setGroupId(value: string): CreateSchemaGroupResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateSchemaGroupResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateSchemaGroupResponse): CreateSchemaGroupResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateSchemaGroupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateSchemaGroupResponse; + static deserializeBinaryFromReader(message: CreateSchemaGroupResponse, reader: jspb.BinaryReader): CreateSchemaGroupResponse; +} + +export namespace CreateSchemaGroupResponse { + export type AsObject = { + groupId: string, + } +} + +export class UpdateSchemaGroupRequest extends jspb.Message { + getGroupId(): string; + setGroupId(value: string): UpdateSchemaGroupRequest; + + hasDetails(): boolean; + clearDetails(): void; + getDetails(): SchemaGroupDetails | undefined; + setDetails(value?: SchemaGroupDetails): UpdateSchemaGroupRequest; + + hasUpdateMask(): boolean; + clearUpdateMask(): void; + getUpdateMask(): google_protobuf_field_mask_pb.FieldMask | undefined; + setUpdateMask(value?: google_protobuf_field_mask_pb.FieldMask): UpdateSchemaGroupRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateSchemaGroupRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateSchemaGroupRequest): UpdateSchemaGroupRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateSchemaGroupRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateSchemaGroupRequest; + static deserializeBinaryFromReader(message: UpdateSchemaGroupRequest, reader: jspb.BinaryReader): UpdateSchemaGroupRequest; +} + +export namespace UpdateSchemaGroupRequest { + export type AsObject = { + groupId: string, + details?: SchemaGroupDetails.AsObject, + updateMask?: google_protobuf_field_mask_pb.FieldMask.AsObject, + } +} + +export class UpdateSchemaGroupResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateSchemaGroupResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateSchemaGroupResponse): UpdateSchemaGroupResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateSchemaGroupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateSchemaGroupResponse; + static deserializeBinaryFromReader(message: UpdateSchemaGroupResponse, reader: jspb.BinaryReader): UpdateSchemaGroupResponse; +} + +export namespace UpdateSchemaGroupResponse { + export type AsObject = { + } +} + +export class DeleteSchemaGroupRequest extends jspb.Message { + getGroupId(): string; + setGroupId(value: string): DeleteSchemaGroupRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSchemaGroupRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSchemaGroupRequest): DeleteSchemaGroupRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSchemaGroupRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSchemaGroupRequest; + static deserializeBinaryFromReader(message: DeleteSchemaGroupRequest, reader: jspb.BinaryReader): DeleteSchemaGroupRequest; +} + +export namespace DeleteSchemaGroupRequest { + export type AsObject = { + groupId: string, + } +} + +export class DeleteSchemaGroupResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSchemaGroupResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSchemaGroupResponse): DeleteSchemaGroupResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSchemaGroupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSchemaGroupResponse; + static deserializeBinaryFromReader(message: DeleteSchemaGroupResponse, reader: jspb.BinaryReader): DeleteSchemaGroupResponse; +} + +export namespace DeleteSchemaGroupResponse { + export type AsObject = { + } +} + +export class GetSchemaGroupRequest extends jspb.Message { + getGroupId(): string; + setGroupId(value: string): GetSchemaGroupRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSchemaGroupRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetSchemaGroupRequest): GetSchemaGroupRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSchemaGroupRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSchemaGroupRequest; + static deserializeBinaryFromReader(message: GetSchemaGroupRequest, reader: jspb.BinaryReader): GetSchemaGroupRequest; +} + +export namespace GetSchemaGroupRequest { + export type AsObject = { + groupId: string, + } +} + +export class GetSchemaGroupResponse extends jspb.Message { + + hasGroup(): boolean; + clearGroup(): void; + getGroup(): SchemaGroup | undefined; + setGroup(value?: SchemaGroup): GetSchemaGroupResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSchemaGroupResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetSchemaGroupResponse): GetSchemaGroupResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSchemaGroupResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSchemaGroupResponse; + static deserializeBinaryFromReader(message: GetSchemaGroupResponse, reader: jspb.BinaryReader): GetSchemaGroupResponse; +} + +export namespace GetSchemaGroupResponse { + export type AsObject = { + group?: SchemaGroup.AsObject, + } +} + +export class ListSchemaGroupsRequest extends jspb.Message { + + hasGroupNamePrefix(): boolean; + clearGroupNamePrefix(): void; + getGroupNamePrefix(): google_protobuf_wrappers_pb.StringValue | undefined; + setGroupNamePrefix(value?: google_protobuf_wrappers_pb.StringValue): ListSchemaGroupsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSchemaGroupsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListSchemaGroupsRequest): ListSchemaGroupsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSchemaGroupsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSchemaGroupsRequest; + static deserializeBinaryFromReader(message: ListSchemaGroupsRequest, reader: jspb.BinaryReader): ListSchemaGroupsRequest; +} + +export namespace ListSchemaGroupsRequest { + export type AsObject = { + groupNamePrefix?: google_protobuf_wrappers_pb.StringValue.AsObject, + } +} + +export class ListSchemaGroupsResponse extends jspb.Message { + clearGroupsList(): void; + getGroupsList(): Array; + setGroupsList(value: Array): ListSchemaGroupsResponse; + addGroups(value?: SchemaGroup, index?: number): SchemaGroup; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSchemaGroupsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListSchemaGroupsResponse): ListSchemaGroupsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSchemaGroupsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSchemaGroupsResponse; + static deserializeBinaryFromReader(message: ListSchemaGroupsResponse, reader: jspb.BinaryReader): ListSchemaGroupsResponse; +} + +export namespace ListSchemaGroupsResponse { + export type AsObject = { + groupsList: Array, + } +} + +export enum StreamFilterType { + CONSUME_FILTER_TYPE_UNSPECIFIED = 0, + CONSUME_FILTER_TYPE_REGEX = 1, + CONSUME_FILTER_TYPE_CATEGORY = 2, +} diff --git a/packages/db-client/generated/registry/groups_pb.js b/packages/db-client/generated/registry/groups_pb.js new file mode 100644 index 00000000..61341691 --- /dev/null +++ b/packages/db-client/generated/registry/groups_pb.js @@ -0,0 +1,3593 @@ +// source: registry/groups.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_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js'); +goog.object.extend(proto, google_protobuf_field_mask_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_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js'); +goog.object.extend(proto, google_protobuf_wrappers_pb); +var registry_shared_pb = require('../registry/shared_pb.js'); +goog.object.extend(proto, registry_shared_pb); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CompatibilitySettings', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DataFormatSettings', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaGroup', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.StreamFilter', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.StreamFilterSettings', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.StreamFilterType', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ValidationSettings', 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.registry.v2.AutoRegistrationSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.displayName = 'proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ValidationSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ValidationSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ValidationSettings.displayName = 'proto.kurrentdb.protocol.registry.v2.ValidationSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.CompatibilitySettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.CompatibilitySettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.displayName = 'proto.kurrentdb.protocol.registry.v2.CompatibilitySettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.DataFormatSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.DataFormatSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.DataFormatSettings.displayName = 'proto.kurrentdb.protocol.registry.v2.DataFormatSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.StreamFilter = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.StreamFilter, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.StreamFilter.displayName = 'proto.kurrentdb.protocol.registry.v2.StreamFilter'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.StreamFilterSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.StreamFilterSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.displayName = 'proto.kurrentdb.protocol.registry.v2.StreamFilterSettings'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.SchemaGroupDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.SchemaGroup = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaGroup, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.SchemaGroup.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaGroup'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.CreateSchemaGroupRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.CreateSchemaGroupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.UpdateSchemaGroupRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.UpdateSchemaGroupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.DeleteSchemaGroupRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.DeleteSchemaGroupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.GetSchemaGroupRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.GetSchemaGroupResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ListSchemaGroupsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ListSchemaGroupsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will 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.registry.v2.AutoRegistrationSettings.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.AutoRegistrationSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.toObject = function(includeInstance, msg) { + var f, obj = { + enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, 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.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} + */ +proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings; + return proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} + */ +proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.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.setEnabled(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.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.registry.v2.AutoRegistrationSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnabled(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool enabled = 1; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.prototype.getEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} returns this + */ +proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.prototype.setEnabled = function(value) { + return jspb.Message.setProto3BooleanField(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.registry.v2.ValidationSettings.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ValidationSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ValidationSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ValidationSettings.toObject = function(includeInstance, msg) { + var f, obj = { + enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, 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.kurrentdb.protocol.registry.v2.ValidationSettings} + */ +proto.kurrentdb.protocol.registry.v2.ValidationSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ValidationSettings; + return proto.kurrentdb.protocol.registry.v2.ValidationSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ValidationSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ValidationSettings} + */ +proto.kurrentdb.protocol.registry.v2.ValidationSettings.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.setEnabled(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.ValidationSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ValidationSettings.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.registry.v2.ValidationSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ValidationSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnabled(); + if (f) { + writer.writeBool( + 1, + f + ); + } +}; + + +/** + * optional bool enabled = 1; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.ValidationSettings.prototype.getEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.ValidationSettings} returns this + */ +proto.kurrentdb.protocol.registry.v2.ValidationSettings.prototype.setEnabled = function(value) { + return jspb.Message.setProto3BooleanField(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.registry.v2.CompatibilitySettings.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.CompatibilitySettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.toObject = function(includeInstance, msg) { + var f, obj = { + enforce: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + mode: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.CompatibilitySettings; + return proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.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.setEnforce(value); + break; + case 2: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (reader.readEnum()); + msg.setMode(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.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.registry.v2.CompatibilitySettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnforce(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getMode(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional bool enforce = 1; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.getEnforce = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} returns this + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.setEnforce = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional CompatibilityMode mode = 2; + * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.getMode = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} value + * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} returns this + */ +proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.prototype.setMode = function(value) { + return jspb.Message.setProto3EnumField(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.registry.v2.DataFormatSettings.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.DataFormatSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.DataFormatSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.toObject = function(includeInstance, msg) { + var f, obj = { + enforce: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + format: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.DataFormatSettings; + return proto.kurrentdb.protocol.registry.v2.DataFormatSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.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.setEnforce(value); + break; + case 2: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (reader.readEnum()); + msg.setFormat(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.DataFormatSettings.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.registry.v2.DataFormatSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnforce(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getFormat(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional bool enforce = 1; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.getEnforce = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} returns this + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.setEnforce = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional SchemaDataFormat format = 2; + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.getFormat = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value + * @return {!proto.kurrentdb.protocol.registry.v2.DataFormatSettings} returns this + */ +proto.kurrentdb.protocol.registry.v2.DataFormatSettings.prototype.setFormat = function(value) { + return jspb.Message.setProto3EnumField(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.registry.v2.StreamFilter.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.StreamFilter.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.StreamFilter} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.toObject = function(includeInstance, msg) { + var f, obj = { + filterType: jspb.Message.getFieldWithDefault(msg, 1, 0), + expression: 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.registry.v2.StreamFilter} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.StreamFilter; + return proto.kurrentdb.protocol.registry.v2.StreamFilter.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilter} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilter} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.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.registry.v2.StreamFilterType} */ (reader.readEnum()); + msg.setFilterType(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setExpression(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.StreamFilter.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.registry.v2.StreamFilter} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getFilterType(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getExpression(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional StreamFilterType filter_type = 1; + * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterType} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.getFilterType = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.StreamFilterType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilterType} value + * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilter} returns this + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.setFilterType = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional string expression = 2; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.getExpression = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilter} returns this + */ +proto.kurrentdb.protocol.registry.v2.StreamFilter.prototype.setExpression = 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.registry.v2.StreamFilterSettings.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.StreamFilterSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.toObject = function(includeInstance, msg) { + var f, obj = { + enforce: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + filter: (f = msg.getFilter()) && proto.kurrentdb.protocol.registry.v2.StreamFilter.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.registry.v2.StreamFilterSettings} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.StreamFilterSettings; + return proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.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.setEnforce(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.StreamFilter; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.StreamFilter.deserializeBinaryFromReader); + msg.setFilter(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.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.registry.v2.StreamFilterSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnforce(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getFilter(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.StreamFilter.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bool enforce = 1; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.getEnforce = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} returns this + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.setEnforce = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional StreamFilter filter = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.StreamFilter} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.getFilter = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.StreamFilter} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.StreamFilter, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.StreamFilter|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} returns this +*/ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.setFilter = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} returns this + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.clearFilter = function() { + return this.setFilter(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.prototype.hasFilter = 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.registry.v2.SchemaGroupDetails.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.SchemaGroupDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject = function(includeInstance, msg) { + var f, obj = { + name: jspb.Message.getFieldWithDefault(msg, 1, ""), + description: jspb.Message.getFieldWithDefault(msg, 2, ""), + tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], + autoRegistration: (f = msg.getAutoRegistration()) && proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.toObject(includeInstance, f), + validation: (f = msg.getValidation()) && proto.kurrentdb.protocol.registry.v2.ValidationSettings.toObject(includeInstance, f), + compatibility: (f = msg.getCompatibility()) && proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.toObject(includeInstance, f), + dataFormat: (f = msg.getDataFormat()) && proto.kurrentdb.protocol.registry.v2.DataFormatSettings.toObject(includeInstance, f), + streamFilter: (f = msg.getStreamFilter()) && proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.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.registry.v2.SchemaGroupDetails} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails; + return proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.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 = msg.getTagsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 11: + var value = new proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.deserializeBinaryFromReader); + msg.setAutoRegistration(value); + break; + case 12: + var value = new proto.kurrentdb.protocol.registry.v2.ValidationSettings; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.ValidationSettings.deserializeBinaryFromReader); + msg.setValidation(value); + break; + case 13: + var value = new proto.kurrentdb.protocol.registry.v2.CompatibilitySettings; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.deserializeBinaryFromReader); + msg.setCompatibility(value); + break; + case 14: + var value = new proto.kurrentdb.protocol.registry.v2.DataFormatSettings; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.DataFormatSettings.deserializeBinaryFromReader); + msg.setDataFormat(value); + break; + case 15: + var value = new proto.kurrentdb.protocol.registry.v2.StreamFilterSettings; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.deserializeBinaryFromReader); + msg.setStreamFilter(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.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.registry.v2.SchemaGroupDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.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.getTagsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getAutoRegistration(); + if (f != null) { + writer.writeMessage( + 11, + f, + proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings.serializeBinaryToWriter + ); + } + f = message.getValidation(); + if (f != null) { + writer.writeMessage( + 12, + f, + proto.kurrentdb.protocol.registry.v2.ValidationSettings.serializeBinaryToWriter + ); + } + f = message.getCompatibility(); + if (f != null) { + writer.writeMessage( + 13, + f, + proto.kurrentdb.protocol.registry.v2.CompatibilitySettings.serializeBinaryToWriter + ); + } + f = message.getDataFormat(); + if (f != null) { + writer.writeMessage( + 14, + f, + proto.kurrentdb.protocol.registry.v2.DataFormatSettings.serializeBinaryToWriter + ); + } + f = message.getStreamFilter(); + if (f != null) { + writer.writeMessage( + 15, + f, + proto.kurrentdb.protocol.registry.v2.StreamFilterSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string description = 2; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setDescription = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearDescription = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasDescription = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * map tags = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getTagsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearTagsMap = function() { + this.getTagsMap().clear(); + return this;}; + + +/** + * optional AutoRegistrationSettings auto_registration = 11; + * @return {?proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getAutoRegistration = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings, 11)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.AutoRegistrationSettings|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setAutoRegistration = function(value) { + return jspb.Message.setWrapperField(this, 11, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearAutoRegistration = function() { + return this.setAutoRegistration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasAutoRegistration = function() { + return jspb.Message.getField(this, 11) != null; +}; + + +/** + * optional ValidationSettings validation = 12; + * @return {?proto.kurrentdb.protocol.registry.v2.ValidationSettings} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getValidation = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.ValidationSettings} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.ValidationSettings, 12)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.ValidationSettings|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setValidation = function(value) { + return jspb.Message.setWrapperField(this, 12, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearValidation = function() { + return this.setValidation(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasValidation = function() { + return jspb.Message.getField(this, 12) != null; +}; + + +/** + * optional CompatibilitySettings compatibility = 13; + * @return {?proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getCompatibility = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.CompatibilitySettings} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.CompatibilitySettings, 13)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.CompatibilitySettings|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setCompatibility = function(value) { + return jspb.Message.setWrapperField(this, 13, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearCompatibility = function() { + return this.setCompatibility(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasCompatibility = function() { + return jspb.Message.getField(this, 13) != null; +}; + + +/** + * optional DataFormatSettings data_format = 14; + * @return {?proto.kurrentdb.protocol.registry.v2.DataFormatSettings} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getDataFormat = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.DataFormatSettings} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.DataFormatSettings, 14)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.DataFormatSettings|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setDataFormat = function(value) { + return jspb.Message.setWrapperField(this, 14, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearDataFormat = function() { + return this.setDataFormat(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasDataFormat = function() { + return jspb.Message.getField(this, 14) != null; +}; + + +/** + * optional StreamFilterSettings stream_filter = 15; + * @return {?proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.getStreamFilter = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.StreamFilterSettings} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.StreamFilterSettings, 15)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.StreamFilterSettings|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.setStreamFilter = function(value) { + return jspb.Message.setWrapperField(this, 15, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.clearStreamFilter = function() { + return this.setStreamFilter(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.prototype.hasStreamFilter = function() { + return jspb.Message.getField(this, 15) != 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.registry.v2.SchemaGroup.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.SchemaGroup.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.SchemaGroup} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, ""), + details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject(includeInstance, f), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updatedAt: (f = msg.getUpdatedAt()) && 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.registry.v2.SchemaGroup} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.SchemaGroup; + return proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.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.setGroupId(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader); + msg.setDetails(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.SchemaGroup.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.registry.v2.SchemaGroup} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDetails(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdatedAt(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string group_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.getGroupId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.setGroupId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional SchemaGroupDetails details = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.getDetails = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.setDetails = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.clearDetails = function() { + return this.setDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.hasDetails = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.Timestamp created_at = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional google.protobuf.Timestamp updated_at = 6; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.getUpdatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.setUpdatedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.clearUpdatedAt = function() { + return this.setUpdatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaGroup.prototype.hasUpdatedAt = 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.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.CreateSchemaGroupRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, ""), + details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.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.registry.v2.CreateSchemaGroupRequest} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest; + return proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.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.setGroupId(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader); + msg.setDetails(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.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.registry.v2.CreateSchemaGroupRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = message.getDetails(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string group_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.getGroupId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.setGroupId = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.clearGroupId = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.hasGroupId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional SchemaGroupDetails details = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.getDetails = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} returns this +*/ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.setDetails = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.clearDetails = function() { + return this.setDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest.prototype.hasDetails = 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.registry.v2.CreateSchemaGroupResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.CreateSchemaGroupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: 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.registry.v2.CreateSchemaGroupResponse} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse; + return proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.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.setGroupId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.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.registry.v2.CreateSchemaGroupResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string group_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.prototype.getGroupId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse.prototype.setGroupId = 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.registry.v2.UpdateSchemaGroupRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.UpdateSchemaGroupRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: jspb.Message.getFieldWithDefault(msg, 1, ""), + details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.toObject(includeInstance, f), + updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.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.registry.v2.UpdateSchemaGroupRequest} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest; + return proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.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.setGroupId(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.deserializeBinaryFromReader); + msg.setDetails(value); + break; + case 3: + var value = new google_protobuf_field_mask_pb.FieldMask; + reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader); + msg.setUpdateMask(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.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.registry.v2.UpdateSchemaGroupRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDetails(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails.serializeBinaryToWriter + ); + } + f = message.getUpdateMask(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string group_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.getGroupId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.setGroupId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional SchemaGroupDetails details = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.getDetails = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaGroupDetails|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this +*/ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.setDetails = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.clearDetails = function() { + return this.setDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.hasDetails = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.FieldMask update_mask = 3; + * @return {?proto.google.protobuf.FieldMask} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.getUpdateMask = function() { + return /** @type{?proto.google.protobuf.FieldMask} */ ( + jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 3)); +}; + + +/** + * @param {?proto.google.protobuf.FieldMask|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this +*/ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.setUpdateMask = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.clearUpdateMask = function() { + return this.setUpdateMask(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest.prototype.hasUpdateMask = 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.registry.v2.UpdateSchemaGroupResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.UpdateSchemaGroupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.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.registry.v2.UpdateSchemaGroupResponse} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse; + return proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.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.registry.v2.UpdateSchemaGroupResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.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.registry.v2.UpdateSchemaGroupResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse.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.registry.v2.DeleteSchemaGroupRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.DeleteSchemaGroupRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: 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.registry.v2.DeleteSchemaGroupRequest} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest; + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.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.setGroupId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.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.registry.v2.DeleteSchemaGroupRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string group_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.prototype.getGroupId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest.prototype.setGroupId = 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.registry.v2.DeleteSchemaGroupResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.DeleteSchemaGroupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.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.registry.v2.DeleteSchemaGroupResponse} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse; + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.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.registry.v2.DeleteSchemaGroupResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.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.registry.v2.DeleteSchemaGroupResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse.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.registry.v2.GetSchemaGroupRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.GetSchemaGroupRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.toObject = function(includeInstance, msg) { + var f, obj = { + groupId: 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.registry.v2.GetSchemaGroupRequest} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest; + return proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.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.setGroupId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.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.registry.v2.GetSchemaGroupRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string group_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.prototype.getGroupId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupRequest.prototype.setGroupId = 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.registry.v2.GetSchemaGroupResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.GetSchemaGroupResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.toObject = function(includeInstance, msg) { + var f, obj = { + group: (f = msg.getGroup()) && proto.kurrentdb.protocol.registry.v2.SchemaGroup.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.registry.v2.GetSchemaGroupResponse} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse; + return proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.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.registry.v2.SchemaGroup; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinaryFromReader); + msg.setGroup(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.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.registry.v2.GetSchemaGroupResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroup(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.SchemaGroup.serializeBinaryToWriter + ); + } +}; + + +/** + * optional SchemaGroup group = 1; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaGroup} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.getGroup = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaGroup} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroup, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaGroup|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.setGroup = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.clearGroup = function() { + return this.setGroup(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaGroupResponse.prototype.hasGroup = 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.registry.v2.ListSchemaGroupsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ListSchemaGroupsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + groupNamePrefix: (f = msg.getGroupNamePrefix()) && google_protobuf_wrappers_pb.StringValue.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.registry.v2.ListSchemaGroupsRequest} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest; + return proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_wrappers_pb.StringValue; + reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader); + msg.setGroupNamePrefix(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.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.registry.v2.ListSchemaGroupsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupNamePrefix(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.StringValue group_name_prefix = 1; + * @return {?proto.google.protobuf.StringValue} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.getGroupNamePrefix = function() { + return /** @type{?proto.google.protobuf.StringValue} */ ( + jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1)); +}; + + +/** + * @param {?proto.google.protobuf.StringValue|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} returns this +*/ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.setGroupNamePrefix = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.clearGroupNamePrefix = function() { + return this.setGroupNamePrefix(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest.prototype.hasGroupNamePrefix = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.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.registry.v2.ListSchemaGroupsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ListSchemaGroupsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + groupsList: jspb.Message.toObjectList(msg.getGroupsList(), + proto.kurrentdb.protocol.registry.v2.SchemaGroup.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.registry.v2.ListSchemaGroupsResponse} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse; + return proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.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.registry.v2.SchemaGroup; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaGroup.deserializeBinaryFromReader); + msg.addGroups(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.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.registry.v2.ListSchemaGroupsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getGroupsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.SchemaGroup.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated SchemaGroup groups = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.getGroupsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaGroup, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.setGroupsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaGroup=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaGroup} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.addGroups = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.registry.v2.SchemaGroup, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse.prototype.clearGroupsList = function() { + return this.setGroupsList([]); +}; + + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.registry.v2.StreamFilterType = { + CONSUME_FILTER_TYPE_UNSPECIFIED: 0, + CONSUME_FILTER_TYPE_REGEX: 1, + CONSUME_FILTER_TYPE_CATEGORY: 2 +}; + +goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2); diff --git a/packages/db-client/generated/registry/schemas_grpc_pb.js b/packages/db-client/generated/registry/schemas_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/packages/db-client/generated/registry/schemas_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/registry/schemas_pb.d.ts b/packages/db-client/generated/registry/schemas_pb.d.ts new file mode 100644 index 00000000..2cab2a6c --- /dev/null +++ b/packages/db-client/generated/registry/schemas_pb.d.ts @@ -0,0 +1,823 @@ +// package: kurrentdb.protocol.registry.v2 +// file: registry/schemas.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as google_protobuf_field_mask_pb from "google-protobuf/google/protobuf/field_mask_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 registry_shared_pb from "../registry/shared_pb"; +import * as core_pb from "../core_pb"; + +export class SchemaDetails extends jspb.Message { + getDataFormat(): registry_shared_pb.SchemaDataFormat; + setDataFormat(value: registry_shared_pb.SchemaDataFormat): SchemaDetails; + getCompatibility(): registry_shared_pb.CompatibilityMode; + setCompatibility(value: registry_shared_pb.CompatibilityMode): SchemaDetails; + + hasDescription(): boolean; + clearDescription(): void; + getDescription(): string | undefined; + setDescription(value: string): SchemaDetails; + + getTagsMap(): jspb.Map; + clearTagsMap(): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SchemaDetails.AsObject; + static toObject(includeInstance: boolean, msg: SchemaDetails): SchemaDetails.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SchemaDetails, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SchemaDetails; + static deserializeBinaryFromReader(message: SchemaDetails, reader: jspb.BinaryReader): SchemaDetails; +} + +export namespace SchemaDetails { + export type AsObject = { + dataFormat: registry_shared_pb.SchemaDataFormat, + compatibility: registry_shared_pb.CompatibilityMode, + description?: string, + + tagsMap: Array<[string, string]>, + } +} + +export class CreateSchemaRequest extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): CreateSchemaRequest; + + hasDetails(): boolean; + clearDetails(): void; + getDetails(): SchemaDetails | undefined; + setDetails(value?: SchemaDetails): CreateSchemaRequest; + + hasSchemaDefinition(): boolean; + clearSchemaDefinition(): void; + getSchemaDefinition(): Uint8Array | string; + getSchemaDefinition_asU8(): Uint8Array; + getSchemaDefinition_asB64(): string; + setSchemaDefinition(value: Uint8Array | string): CreateSchemaRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateSchemaRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateSchemaRequest): CreateSchemaRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateSchemaRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateSchemaRequest; + static deserializeBinaryFromReader(message: CreateSchemaRequest, reader: jspb.BinaryReader): CreateSchemaRequest; +} + +export namespace CreateSchemaRequest { + export type AsObject = { + schemaName: string, + details?: SchemaDetails.AsObject, + schemaDefinition: Uint8Array | string, + } +} + +export class CreateSchemaResponse extends jspb.Message { + getSchemaVersionId(): string; + setSchemaVersionId(value: string): CreateSchemaResponse; + getVersionNumber(): number; + setVersionNumber(value: number): CreateSchemaResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateSchemaResponse.AsObject; + static toObject(includeInstance: boolean, msg: CreateSchemaResponse): CreateSchemaResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateSchemaResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateSchemaResponse; + static deserializeBinaryFromReader(message: CreateSchemaResponse, reader: jspb.BinaryReader): CreateSchemaResponse; +} + +export namespace CreateSchemaResponse { + export type AsObject = { + schemaVersionId: string, + versionNumber: number, + } +} + +export class UpdateSchemaRequest extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): UpdateSchemaRequest; + + hasDetails(): boolean; + clearDetails(): void; + getDetails(): SchemaDetails | undefined; + setDetails(value?: SchemaDetails): UpdateSchemaRequest; + + hasUpdateMask(): boolean; + clearUpdateMask(): void; + getUpdateMask(): google_protobuf_field_mask_pb.FieldMask | undefined; + setUpdateMask(value?: google_protobuf_field_mask_pb.FieldMask): UpdateSchemaRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateSchemaRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateSchemaRequest): UpdateSchemaRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateSchemaRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateSchemaRequest; + static deserializeBinaryFromReader(message: UpdateSchemaRequest, reader: jspb.BinaryReader): UpdateSchemaRequest; +} + +export namespace UpdateSchemaRequest { + export type AsObject = { + schemaName: string, + details?: SchemaDetails.AsObject, + updateMask?: google_protobuf_field_mask_pb.FieldMask.AsObject, + } +} + +export class UpdateSchemaResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateSchemaResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateSchemaResponse): UpdateSchemaResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateSchemaResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateSchemaResponse; + static deserializeBinaryFromReader(message: UpdateSchemaResponse, reader: jspb.BinaryReader): UpdateSchemaResponse; +} + +export namespace UpdateSchemaResponse { + export type AsObject = { + } +} + +export class DeleteSchemaRequest extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): DeleteSchemaRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSchemaRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSchemaRequest): DeleteSchemaRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSchemaRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSchemaRequest; + static deserializeBinaryFromReader(message: DeleteSchemaRequest, reader: jspb.BinaryReader): DeleteSchemaRequest; +} + +export namespace DeleteSchemaRequest { + export type AsObject = { + schemaName: string, + } +} + +export class DeleteSchemaResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSchemaResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSchemaResponse): DeleteSchemaResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSchemaResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSchemaResponse; + static deserializeBinaryFromReader(message: DeleteSchemaResponse, reader: jspb.BinaryReader): DeleteSchemaResponse; +} + +export namespace DeleteSchemaResponse { + export type AsObject = { + } +} + +export class Schema extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): Schema; + + hasDetails(): boolean; + clearDetails(): void; + getDetails(): SchemaDetails | undefined; + setDetails(value?: SchemaDetails): Schema; + getLatestSchemaVersion(): number; + setLatestSchemaVersion(value: number): Schema; + + hasCreatedAt(): boolean; + clearCreatedAt(): void; + getCreatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setCreatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Schema; + + hasUpdatedAt(): boolean; + clearUpdatedAt(): void; + getUpdatedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setUpdatedAt(value?: google_protobuf_timestamp_pb.Timestamp): Schema; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Schema.AsObject; + static toObject(includeInstance: boolean, msg: Schema): Schema.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Schema, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Schema; + static deserializeBinaryFromReader(message: Schema, reader: jspb.BinaryReader): Schema; +} + +export namespace Schema { + export type AsObject = { + schemaName: string, + details?: SchemaDetails.AsObject, + latestSchemaVersion: number, + createdAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class GetSchemaRequest extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): GetSchemaRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSchemaRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetSchemaRequest): GetSchemaRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSchemaRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSchemaRequest; + static deserializeBinaryFromReader(message: GetSchemaRequest, reader: jspb.BinaryReader): GetSchemaRequest; +} + +export namespace GetSchemaRequest { + export type AsObject = { + schemaName: string, + } +} + +export class GetSchemaResponse extends jspb.Message { + + hasSchema(): boolean; + clearSchema(): void; + getSchema(): Schema | undefined; + setSchema(value?: Schema): GetSchemaResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSchemaResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetSchemaResponse): GetSchemaResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSchemaResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSchemaResponse; + static deserializeBinaryFromReader(message: GetSchemaResponse, reader: jspb.BinaryReader): GetSchemaResponse; +} + +export namespace GetSchemaResponse { + export type AsObject = { + schema?: Schema.AsObject, + } +} + +export class ListSchemasRequest extends jspb.Message { + + hasSchemaNamePrefix(): boolean; + clearSchemaNamePrefix(): void; + getSchemaNamePrefix(): string | undefined; + setSchemaNamePrefix(value: string): ListSchemasRequest; + + getSchemaTagsMap(): jspb.Map; + clearSchemaTagsMap(): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSchemasRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListSchemasRequest): ListSchemasRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSchemasRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSchemasRequest; + static deserializeBinaryFromReader(message: ListSchemasRequest, reader: jspb.BinaryReader): ListSchemasRequest; +} + +export namespace ListSchemasRequest { + export type AsObject = { + schemaNamePrefix?: string, + + schemaTagsMap: Array<[string, string]>, + } +} + +export class ListSchemasResponse extends jspb.Message { + clearSchemasList(): void; + getSchemasList(): Array; + setSchemasList(value: Array): ListSchemasResponse; + addSchemas(value?: Schema, index?: number): Schema; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSchemasResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListSchemasResponse): ListSchemasResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSchemasResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSchemasResponse; + static deserializeBinaryFromReader(message: ListSchemasResponse, reader: jspb.BinaryReader): ListSchemasResponse; +} + +export namespace ListSchemasResponse { + export type AsObject = { + schemasList: Array, + } +} + +export class LookupSchemaNameRequest extends jspb.Message { + getSchemaVersionId(): string; + setSchemaVersionId(value: string): LookupSchemaNameRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LookupSchemaNameRequest.AsObject; + static toObject(includeInstance: boolean, msg: LookupSchemaNameRequest): LookupSchemaNameRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LookupSchemaNameRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LookupSchemaNameRequest; + static deserializeBinaryFromReader(message: LookupSchemaNameRequest, reader: jspb.BinaryReader): LookupSchemaNameRequest; +} + +export namespace LookupSchemaNameRequest { + export type AsObject = { + schemaVersionId: string, + } +} + +export class LookupSchemaNameResponse extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): LookupSchemaNameResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): LookupSchemaNameResponse.AsObject; + static toObject(includeInstance: boolean, msg: LookupSchemaNameResponse): LookupSchemaNameResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: LookupSchemaNameResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): LookupSchemaNameResponse; + static deserializeBinaryFromReader(message: LookupSchemaNameResponse, reader: jspb.BinaryReader): LookupSchemaNameResponse; +} + +export namespace LookupSchemaNameResponse { + export type AsObject = { + schemaName: string, + } +} + +export class RegisterSchemaVersionRequest extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): RegisterSchemaVersionRequest; + getSchemaDefinition(): Uint8Array | string; + getSchemaDefinition_asU8(): Uint8Array; + getSchemaDefinition_asB64(): string; + setSchemaDefinition(value: Uint8Array | string): RegisterSchemaVersionRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RegisterSchemaVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: RegisterSchemaVersionRequest): RegisterSchemaVersionRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RegisterSchemaVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RegisterSchemaVersionRequest; + static deserializeBinaryFromReader(message: RegisterSchemaVersionRequest, reader: jspb.BinaryReader): RegisterSchemaVersionRequest; +} + +export namespace RegisterSchemaVersionRequest { + export type AsObject = { + schemaName: string, + schemaDefinition: Uint8Array | string, + } +} + +export class RegisterSchemaVersionResponse extends jspb.Message { + getSchemaVersionId(): string; + setSchemaVersionId(value: string): RegisterSchemaVersionResponse; + getVersionNumber(): number; + setVersionNumber(value: number): RegisterSchemaVersionResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RegisterSchemaVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: RegisterSchemaVersionResponse): RegisterSchemaVersionResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RegisterSchemaVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RegisterSchemaVersionResponse; + static deserializeBinaryFromReader(message: RegisterSchemaVersionResponse, reader: jspb.BinaryReader): RegisterSchemaVersionResponse; +} + +export namespace RegisterSchemaVersionResponse { + export type AsObject = { + schemaVersionId: string, + versionNumber: number, + } +} + +export class DeleteSchemaVersionsRequest extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): DeleteSchemaVersionsRequest; + clearVersionsList(): void; + getVersionsList(): Array; + setVersionsList(value: Array): DeleteSchemaVersionsRequest; + addVersions(value: number, index?: number): number; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSchemaVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSchemaVersionsRequest): DeleteSchemaVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSchemaVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSchemaVersionsRequest; + static deserializeBinaryFromReader(message: DeleteSchemaVersionsRequest, reader: jspb.BinaryReader): DeleteSchemaVersionsRequest; +} + +export namespace DeleteSchemaVersionsRequest { + export type AsObject = { + schemaName: string, + versionsList: Array, + } +} + +export class DeleteSchemaVersionsResponse extends jspb.Message { + clearErrorsList(): void; + getErrorsList(): Array; + setErrorsList(value: Array): DeleteSchemaVersionsResponse; + addErrors(value?: DeleteSchemaVersionsResponse.SchemaVersionError, index?: number): DeleteSchemaVersionsResponse.SchemaVersionError; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DeleteSchemaVersionsResponse.AsObject; + static toObject(includeInstance: boolean, msg: DeleteSchemaVersionsResponse): DeleteSchemaVersionsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DeleteSchemaVersionsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteSchemaVersionsResponse; + static deserializeBinaryFromReader(message: DeleteSchemaVersionsResponse, reader: jspb.BinaryReader): DeleteSchemaVersionsResponse; +} + +export namespace DeleteSchemaVersionsResponse { + export type AsObject = { + errorsList: Array, + } + + + export class SchemaVersionError extends jspb.Message { + getVersionNumber(): number; + setVersionNumber(value: number): SchemaVersionError; + + hasError(): boolean; + clearError(): void; + getError(): core_pb.ErrorDetails | undefined; + setError(value?: core_pb.ErrorDetails): SchemaVersionError; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SchemaVersionError.AsObject; + static toObject(includeInstance: boolean, msg: SchemaVersionError): SchemaVersionError.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SchemaVersionError, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SchemaVersionError; + static deserializeBinaryFromReader(message: SchemaVersionError, reader: jspb.BinaryReader): SchemaVersionError; + } + + export namespace SchemaVersionError { + export type AsObject = { + versionNumber: number, + error?: core_pb.ErrorDetails.AsObject, + } + } + +} + +export class SchemaVersion extends jspb.Message { + getSchemaVersionId(): string; + setSchemaVersionId(value: string): SchemaVersion; + getVersionNumber(): number; + setVersionNumber(value: number): SchemaVersion; + getSchemaDefinition(): Uint8Array | string; + getSchemaDefinition_asU8(): Uint8Array; + getSchemaDefinition_asB64(): string; + setSchemaDefinition(value: Uint8Array | string): SchemaVersion; + getDataFormat(): registry_shared_pb.SchemaDataFormat; + setDataFormat(value: registry_shared_pb.SchemaDataFormat): SchemaVersion; + + hasRegisteredAt(): boolean; + clearRegisteredAt(): void; + getRegisteredAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setRegisteredAt(value?: google_protobuf_timestamp_pb.Timestamp): SchemaVersion; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SchemaVersion.AsObject; + static toObject(includeInstance: boolean, msg: SchemaVersion): SchemaVersion.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SchemaVersion, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SchemaVersion; + static deserializeBinaryFromReader(message: SchemaVersion, reader: jspb.BinaryReader): SchemaVersion; +} + +export namespace SchemaVersion { + export type AsObject = { + schemaVersionId: string, + versionNumber: number, + schemaDefinition: Uint8Array | string, + dataFormat: registry_shared_pb.SchemaDataFormat, + registeredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class GetSchemaVersionByIdRequest extends jspb.Message { + getSchemaVersionId(): string; + setSchemaVersionId(value: string): GetSchemaVersionByIdRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSchemaVersionByIdRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetSchemaVersionByIdRequest): GetSchemaVersionByIdRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSchemaVersionByIdRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSchemaVersionByIdRequest; + static deserializeBinaryFromReader(message: GetSchemaVersionByIdRequest, reader: jspb.BinaryReader): GetSchemaVersionByIdRequest; +} + +export namespace GetSchemaVersionByIdRequest { + export type AsObject = { + schemaVersionId: string, + } +} + +export class GetSchemaVersionByIdResponse extends jspb.Message { + + hasVersion(): boolean; + clearVersion(): void; + getVersion(): SchemaVersion | undefined; + setVersion(value?: SchemaVersion): GetSchemaVersionByIdResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSchemaVersionByIdResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetSchemaVersionByIdResponse): GetSchemaVersionByIdResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSchemaVersionByIdResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSchemaVersionByIdResponse; + static deserializeBinaryFromReader(message: GetSchemaVersionByIdResponse, reader: jspb.BinaryReader): GetSchemaVersionByIdResponse; +} + +export namespace GetSchemaVersionByIdResponse { + export type AsObject = { + version?: SchemaVersion.AsObject, + } +} + +export class GetSchemaVersionRequest extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): GetSchemaVersionRequest; + + hasVersionNumber(): boolean; + clearVersionNumber(): void; + getVersionNumber(): number | undefined; + setVersionNumber(value: number): GetSchemaVersionRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSchemaVersionRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetSchemaVersionRequest): GetSchemaVersionRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSchemaVersionRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSchemaVersionRequest; + static deserializeBinaryFromReader(message: GetSchemaVersionRequest, reader: jspb.BinaryReader): GetSchemaVersionRequest; +} + +export namespace GetSchemaVersionRequest { + export type AsObject = { + schemaName: string, + versionNumber?: number, + } +} + +export class GetSchemaVersionResponse extends jspb.Message { + + hasVersion(): boolean; + clearVersion(): void; + getVersion(): SchemaVersion | undefined; + setVersion(value?: SchemaVersion): GetSchemaVersionResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetSchemaVersionResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetSchemaVersionResponse): GetSchemaVersionResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetSchemaVersionResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetSchemaVersionResponse; + static deserializeBinaryFromReader(message: GetSchemaVersionResponse, reader: jspb.BinaryReader): GetSchemaVersionResponse; +} + +export namespace GetSchemaVersionResponse { + export type AsObject = { + version?: SchemaVersion.AsObject, + } +} + +export class ListSchemaVersionsRequest extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): ListSchemaVersionsRequest; + getIncludeDefinition(): boolean; + setIncludeDefinition(value: boolean): ListSchemaVersionsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSchemaVersionsRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListSchemaVersionsRequest): ListSchemaVersionsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSchemaVersionsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSchemaVersionsRequest; + static deserializeBinaryFromReader(message: ListSchemaVersionsRequest, reader: jspb.BinaryReader): ListSchemaVersionsRequest; +} + +export namespace ListSchemaVersionsRequest { + export type AsObject = { + schemaName: string, + includeDefinition: boolean, + } +} + +export class ListSchemaVersionsResponse extends jspb.Message { + clearVersionsList(): void; + getVersionsList(): Array; + setVersionsList(value: Array): ListSchemaVersionsResponse; + addVersions(value?: SchemaVersion, index?: number): SchemaVersion; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListSchemaVersionsResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListSchemaVersionsResponse): ListSchemaVersionsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListSchemaVersionsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListSchemaVersionsResponse; + static deserializeBinaryFromReader(message: ListSchemaVersionsResponse, reader: jspb.BinaryReader): ListSchemaVersionsResponse; +} + +export namespace ListSchemaVersionsResponse { + export type AsObject = { + versionsList: Array, + } +} + +export class RegisteredSchema extends jspb.Message { + getSchemaName(): string; + setSchemaName(value: string): RegisteredSchema; + getSchemaVersionId(): string; + setSchemaVersionId(value: string): RegisteredSchema; + getVersionNumber(): number; + setVersionNumber(value: number): RegisteredSchema; + getSchemaDefinition(): Uint8Array | string; + getSchemaDefinition_asU8(): Uint8Array; + getSchemaDefinition_asB64(): string; + setSchemaDefinition(value: Uint8Array | string): RegisteredSchema; + getDataFormat(): registry_shared_pb.SchemaDataFormat; + setDataFormat(value: registry_shared_pb.SchemaDataFormat): RegisteredSchema; + getCompatibility(): registry_shared_pb.CompatibilityMode; + setCompatibility(value: registry_shared_pb.CompatibilityMode): RegisteredSchema; + + getTagsMap(): jspb.Map; + clearTagsMap(): void; + + hasRegisteredAt(): boolean; + clearRegisteredAt(): void; + getRegisteredAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setRegisteredAt(value?: google_protobuf_timestamp_pb.Timestamp): RegisteredSchema; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RegisteredSchema.AsObject; + static toObject(includeInstance: boolean, msg: RegisteredSchema): RegisteredSchema.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RegisteredSchema, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RegisteredSchema; + static deserializeBinaryFromReader(message: RegisteredSchema, reader: jspb.BinaryReader): RegisteredSchema; +} + +export namespace RegisteredSchema { + export type AsObject = { + schemaName: string, + schemaVersionId: string, + versionNumber: number, + schemaDefinition: Uint8Array | string, + dataFormat: registry_shared_pb.SchemaDataFormat, + compatibility: registry_shared_pb.CompatibilityMode, + + tagsMap: Array<[string, string]>, + registeredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + } +} + +export class ListRegisteredSchemasRequest extends jspb.Message { + + hasSchemaVersionId(): boolean; + clearSchemaVersionId(): void; + getSchemaVersionId(): string | undefined; + setSchemaVersionId(value: string): ListRegisteredSchemasRequest; + + hasSchemaNamePrefix(): boolean; + clearSchemaNamePrefix(): void; + getSchemaNamePrefix(): string | undefined; + setSchemaNamePrefix(value: string): ListRegisteredSchemasRequest; + + getSchemaTagsMap(): jspb.Map; + clearSchemaTagsMap(): void; + getIncludeDefinition(): boolean; + setIncludeDefinition(value: boolean): ListRegisteredSchemasRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListRegisteredSchemasRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListRegisteredSchemasRequest): ListRegisteredSchemasRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListRegisteredSchemasRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListRegisteredSchemasRequest; + static deserializeBinaryFromReader(message: ListRegisteredSchemasRequest, reader: jspb.BinaryReader): ListRegisteredSchemasRequest; +} + +export namespace ListRegisteredSchemasRequest { + export type AsObject = { + schemaVersionId?: string, + schemaNamePrefix?: string, + + schemaTagsMap: Array<[string, string]>, + includeDefinition: boolean, + } +} + +export class ListRegisteredSchemasResponse extends jspb.Message { + clearSchemasList(): void; + getSchemasList(): Array; + setSchemasList(value: Array): ListRegisteredSchemasResponse; + addSchemas(value?: RegisteredSchema, index?: number): RegisteredSchema; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListRegisteredSchemasResponse.AsObject; + static toObject(includeInstance: boolean, msg: ListRegisteredSchemasResponse): ListRegisteredSchemasResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListRegisteredSchemasResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListRegisteredSchemasResponse; + static deserializeBinaryFromReader(message: ListRegisteredSchemasResponse, reader: jspb.BinaryReader): ListRegisteredSchemasResponse; +} + +export namespace ListRegisteredSchemasResponse { + export type AsObject = { + schemasList: Array, + } +} + +export class BulkRegisterSchemasRequest extends jspb.Message { + clearRequestsList(): void; + getRequestsList(): Array; + setRequestsList(value: Array): BulkRegisterSchemasRequest; + addRequests(value?: CreateSchemaRequest, index?: number): CreateSchemaRequest; + getKeepOrder(): boolean; + setKeepOrder(value: boolean): BulkRegisterSchemasRequest; + getStopOnError(): boolean; + setStopOnError(value: boolean): BulkRegisterSchemasRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BulkRegisterSchemasRequest.AsObject; + static toObject(includeInstance: boolean, msg: BulkRegisterSchemasRequest): BulkRegisterSchemasRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BulkRegisterSchemasRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BulkRegisterSchemasRequest; + static deserializeBinaryFromReader(message: BulkRegisterSchemasRequest, reader: jspb.BinaryReader): BulkRegisterSchemasRequest; +} + +export namespace BulkRegisterSchemasRequest { + export type AsObject = { + requestsList: Array, + keepOrder: boolean, + stopOnError: boolean, + } +} + +export class BulkRegisterSchemasResponse extends jspb.Message { + + hasDuration(): boolean; + clearDuration(): void; + getDuration(): google_protobuf_duration_pb.Duration | undefined; + setDuration(value?: google_protobuf_duration_pb.Duration): BulkRegisterSchemasResponse; + clearResponsesList(): void; + getResponsesList(): Array; + setResponsesList(value: Array): BulkRegisterSchemasResponse; + addResponses(value?: CreateSchemaResponse, index?: number): CreateSchemaResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): BulkRegisterSchemasResponse.AsObject; + static toObject(includeInstance: boolean, msg: BulkRegisterSchemasResponse): BulkRegisterSchemasResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: BulkRegisterSchemasResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): BulkRegisterSchemasResponse; + static deserializeBinaryFromReader(message: BulkRegisterSchemasResponse, reader: jspb.BinaryReader): BulkRegisterSchemasResponse; +} + +export namespace BulkRegisterSchemasResponse { + export type AsObject = { + duration?: google_protobuf_duration_pb.Duration.AsObject, + responsesList: Array, + } +} diff --git a/packages/db-client/generated/registry/schemas_pb.js b/packages/db-client/generated/registry/schemas_pb.js new file mode 100644 index 00000000..c3487fcf --- /dev/null +++ b/packages/db-client/generated/registry/schemas_pb.js @@ -0,0 +1,6465 @@ +// source: registry/schemas.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_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js'); +goog.object.extend(proto, google_protobuf_field_mask_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 registry_shared_pb = require('../registry/shared_pb.js'); +goog.object.extend(proto, registry_shared_pb); +var core_pb = require('../core_pb.js'); +goog.object.extend(proto, core_pb); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListSchemasRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.ListSchemasResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.RegisteredSchema', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.Schema', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaDetails', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaVersion', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse', 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.registry.v2.SchemaDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.SchemaDetails.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaDetails'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.CreateSchemaRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.CreateSchemaResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.UpdateSchemaRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.UpdateSchemaResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.DeleteSchemaRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.DeleteSchemaResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.Schema = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.Schema, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.Schema.displayName = 'proto.kurrentdb.protocol.registry.v2.Schema'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.GetSchemaRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.GetSchemaResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ListSchemasRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ListSchemasRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.ListSchemasRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ListSchemasResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ListSchemasResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.ListSchemasResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.LookupSchemaNameRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.LookupSchemaNameResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.RegisterSchemaVersionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.RegisterSchemaVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.DeleteSchemaVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.DeleteSchemaVersionsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.displayName = 'proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.SchemaVersion = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaVersion, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.SchemaVersion.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaVersion'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.GetSchemaVersionByIdRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.GetSchemaVersionByIdResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.GetSchemaVersionRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.GetSchemaVersionResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ListSchemaVersionsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ListSchemaVersionsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.RegisteredSchema = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.RegisteredSchema, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.RegisteredSchema.displayName = 'proto.kurrentdb.protocol.registry.v2.RegisteredSchema'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ListRegisteredSchemasRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.ListRegisteredSchemasResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.BulkRegisterSchemasRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.BulkRegisterSchemasResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will 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.registry.v2.SchemaDetails.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.SchemaDetails.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.SchemaDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.toObject = function(includeInstance, msg) { + var f, obj = { + dataFormat: jspb.Message.getFieldWithDefault(msg, 1, 0), + compatibility: jspb.Message.getFieldWithDefault(msg, 2, 0), + description: jspb.Message.getFieldWithDefault(msg, 3, ""), + tagsMap: (f = msg.getTagsMap()) ? 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.kurrentdb.protocol.registry.v2.SchemaDetails} + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.SchemaDetails; + return proto.kurrentdb.protocol.registry.v2.SchemaDetails.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDetails} + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.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.registry.v2.SchemaDataFormat} */ (reader.readEnum()); + msg.setDataFormat(value); + break; + case 2: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (reader.readEnum()); + msg.setCompatibility(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setDescription(value); + break; + case 4: + var value = msg.getTagsMap(); + 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.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.SchemaDetails.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.registry.v2.SchemaDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDataFormat(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getCompatibility(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = message.getTagsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(4, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional SchemaDataFormat data_format = 1; + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.getDataFormat = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.setDataFormat = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional CompatibilityMode compatibility = 2; + * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.getCompatibility = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.setCompatibility = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional string description = 3; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.getDescription = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.setDescription = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.clearDescription = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.hasDescription = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * map tags = 4; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.getTagsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 4, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDetails} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaDetails.prototype.clearTagsMap = function() { + this.getTagsMap().clear(); + return this;}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will 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.registry.v2.CreateSchemaRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.CreateSchemaRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaDetails.toObject(includeInstance, f), + schemaDefinition: msg.getSchemaDefinition_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.registry.v2.CreateSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest; + return proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.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.setSchemaName(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.SchemaDetails; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaDetails.deserializeBinaryFromReader); + msg.setDetails(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSchemaDefinition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.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.registry.v2.CreateSchemaRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDetails(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.SchemaDetails.serializeBinaryToWriter + ); + } + f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeBytes( + 3, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.setSchemaName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional SchemaDetails details = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaDetails} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.getDetails = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaDetails} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaDetails, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaDetails|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest} returns this +*/ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.setDetails = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.clearDetails = function() { + return this.setDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.hasDetails = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bytes schema_definition = 3; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.getSchemaDefinition = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes schema_definition = 3; + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.getSchemaDefinition_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSchemaDefinition())); +}; + + +/** + * optional bytes schema_definition = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.getSchemaDefinition_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSchemaDefinition())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.setSchemaDefinition = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.clearSchemaDefinition = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.prototype.hasSchemaDefinition = 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.registry.v2.CreateSchemaResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.CreateSchemaResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.toObject = function(includeInstance, msg) { + var f, obj = { + schemaVersionId: jspb.Message.getFieldWithDefault(msg, 1, ""), + versionNumber: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse; + return proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.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.setSchemaVersionId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersionNumber(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.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.registry.v2.CreateSchemaResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaVersionId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVersionNumber(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional string schema_version_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.prototype.setSchemaVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 version_number = 2; + * @return {number} + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.prototype.getVersionNumber = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.prototype.setVersionNumber = 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.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.UpdateSchemaRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaDetails.toObject(includeInstance, f), + updateMask: (f = msg.getUpdateMask()) && google_protobuf_field_mask_pb.FieldMask.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.registry.v2.UpdateSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest; + return proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.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.setSchemaName(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.SchemaDetails; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaDetails.deserializeBinaryFromReader); + msg.setDetails(value); + break; + case 3: + var value = new google_protobuf_field_mask_pb.FieldMask; + reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader); + msg.setUpdateMask(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.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.registry.v2.UpdateSchemaRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDetails(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.SchemaDetails.serializeBinaryToWriter + ); + } + f = message.getUpdateMask(); + if (f != null) { + writer.writeMessage( + 3, + f, + google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.setSchemaName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional SchemaDetails details = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaDetails} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.getDetails = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaDetails} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaDetails, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaDetails|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest} returns this +*/ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.setDetails = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.clearDetails = function() { + return this.setDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.hasDetails = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional google.protobuf.FieldMask update_mask = 3; + * @return {?proto.google.protobuf.FieldMask} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.getUpdateMask = function() { + return /** @type{?proto.google.protobuf.FieldMask} */ ( + jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 3)); +}; + + +/** + * @param {?proto.google.protobuf.FieldMask|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest} returns this +*/ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.setUpdateMask = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.clearUpdateMask = function() { + return this.setUpdateMask(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaRequest.prototype.hasUpdateMask = 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.registry.v2.UpdateSchemaResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.UpdateSchemaResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse.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.registry.v2.UpdateSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse; + return proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse.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.registry.v2.UpdateSchemaResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse.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.registry.v2.UpdateSchemaResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.UpdateSchemaResponse.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.registry.v2.DeleteSchemaRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.DeleteSchemaRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: 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.registry.v2.DeleteSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest; + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.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.setSchemaName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.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.registry.v2.DeleteSchemaRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaRequest.prototype.setSchemaName = 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.registry.v2.DeleteSchemaResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.DeleteSchemaResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse.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.registry.v2.DeleteSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse; + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse.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.registry.v2.DeleteSchemaResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse.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.registry.v2.DeleteSchemaResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaResponse.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.registry.v2.Schema.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.Schema.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.Schema} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.Schema.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + details: (f = msg.getDetails()) && proto.kurrentdb.protocol.registry.v2.SchemaDetails.toObject(includeInstance, f), + latestSchemaVersion: jspb.Message.getFieldWithDefault(msg, 4, 0), + createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + updatedAt: (f = msg.getUpdatedAt()) && 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.registry.v2.Schema} + */ +proto.kurrentdb.protocol.registry.v2.Schema.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.Schema; + return proto.kurrentdb.protocol.registry.v2.Schema.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.Schema} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} + */ +proto.kurrentdb.protocol.registry.v2.Schema.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.setSchemaName(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.SchemaDetails; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaDetails.deserializeBinaryFromReader); + msg.setDetails(value); + break; + case 4: + var value = /** @type {number} */ (reader.readInt32()); + msg.setLatestSchemaVersion(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setCreatedAt(value); + break; + case 6: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setUpdatedAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.Schema.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.registry.v2.Schema} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.Schema.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDetails(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.SchemaDetails.serializeBinaryToWriter + ); + } + f = message.getLatestSchemaVersion(); + if (f !== 0) { + writer.writeInt32( + 4, + f + ); + } + f = message.getCreatedAt(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getUpdatedAt(); + if (f != null) { + writer.writeMessage( + 6, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} returns this + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.setSchemaName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional SchemaDetails details = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaDetails} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.getDetails = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaDetails} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaDetails, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaDetails|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} returns this +*/ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.setDetails = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} returns this + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.clearDetails = function() { + return this.setDetails(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.hasDetails = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional int32 latest_schema_version = 4; + * @return {number} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.getLatestSchemaVersion = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} returns this + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.setLatestSchemaVersion = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + +/** + * optional google.protobuf.Timestamp created_at = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.getCreatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} returns this +*/ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.setCreatedAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} returns this + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.clearCreatedAt = function() { + return this.setCreatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.hasCreatedAt = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional google.protobuf.Timestamp updated_at = 6; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.getUpdatedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} returns this +*/ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.setUpdatedAt = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} returns this + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.clearUpdatedAt = function() { + return this.setUpdatedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.Schema.prototype.hasUpdatedAt = 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.kurrentdb.protocol.registry.v2.GetSchemaRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.GetSchemaRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: 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.registry.v2.GetSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaRequest; + return proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.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.setSchemaName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.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.registry.v2.GetSchemaRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaRequest.prototype.setSchemaName = 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.registry.v2.GetSchemaResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.GetSchemaResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.toObject = function(includeInstance, msg) { + var f, obj = { + schema: (f = msg.getSchema()) && proto.kurrentdb.protocol.registry.v2.Schema.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.registry.v2.GetSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaResponse; + return proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.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.registry.v2.Schema; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.Schema.deserializeBinaryFromReader); + msg.setSchema(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.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.registry.v2.GetSchemaResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchema(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.Schema.serializeBinaryToWriter + ); + } +}; + + +/** + * optional Schema schema = 1; + * @return {?proto.kurrentdb.protocol.registry.v2.Schema} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.prototype.getSchema = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.Schema} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.Schema, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.Schema|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.prototype.setSchema = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.prototype.clearSchema = function() { + return this.setSchema(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaResponse.prototype.hasSchema = 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.registry.v2.ListSchemasRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ListSchemasRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaNamePrefix: jspb.Message.getFieldWithDefault(msg, 1, ""), + schemaTagsMap: (f = msg.getSchemaTagsMap()) ? 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.kurrentdb.protocol.registry.v2.ListSchemasRequest} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ListSchemasRequest; + return proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemasRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemasRequest} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.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.setSchemaNamePrefix(value); + break; + case 2: + var value = msg.getSchemaTagsMap(); + 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.kurrentdb.protocol.registry.v2.ListSchemasRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.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.registry.v2.ListSchemasRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = message.getSchemaTagsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } +}; + + +/** + * optional string schema_name_prefix = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.prototype.getSchemaNamePrefix = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.prototype.setSchemaNamePrefix = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.prototype.clearSchemaNamePrefix = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.prototype.hasSchemaNamePrefix = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * map schema_tags = 2; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.prototype.getSchemaTagsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasRequest.prototype.clearSchemaTagsMap = function() { + this.getSchemaTagsMap().clear(); + return this;}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.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.registry.v2.ListSchemasResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ListSchemasResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.toObject = function(includeInstance, msg) { + var f, obj = { + schemasList: jspb.Message.toObjectList(msg.getSchemasList(), + proto.kurrentdb.protocol.registry.v2.Schema.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.registry.v2.ListSchemasResponse} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ListSchemasResponse; + return proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemasResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemasResponse} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.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.registry.v2.Schema; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.Schema.deserializeBinaryFromReader); + msg.addSchemas(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.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.registry.v2.ListSchemasResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.Schema.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated Schema schemas = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.prototype.getSchemasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.Schema, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemasResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.prototype.setSchemasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.Schema=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.Schema} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.prototype.addSchemas = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.registry.v2.Schema, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemasResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemasResponse.prototype.clearSchemasList = function() { + return this.setSchemasList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will 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.registry.v2.LookupSchemaNameRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.LookupSchemaNameRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaVersionId: 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.registry.v2.LookupSchemaNameRequest} + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest; + return proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest} + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.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.setSchemaVersionId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.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.registry.v2.LookupSchemaNameRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaVersionId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string schema_version_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameRequest.prototype.setSchemaVersionId = 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.registry.v2.LookupSchemaNameResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.LookupSchemaNameResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: 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.registry.v2.LookupSchemaNameResponse} + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse; + return proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse} + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.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.setSchemaName(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.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.registry.v2.LookupSchemaNameResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.LookupSchemaNameResponse.prototype.setSchemaName = 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.registry.v2.RegisterSchemaVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.RegisterSchemaVersionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + schemaDefinition: msg.getSchemaDefinition_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.registry.v2.RegisterSchemaVersionRequest} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest; + return proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.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.setSchemaName(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSchemaDefinition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.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.registry.v2.RegisterSchemaVersionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSchemaDefinition_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.prototype.setSchemaName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes schema_definition = 2; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.prototype.getSchemaDefinition = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes schema_definition = 2; + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.prototype.getSchemaDefinition_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSchemaDefinition())); +}; + + +/** + * optional bytes schema_definition = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.prototype.getSchemaDefinition_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSchemaDefinition())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest.prototype.setSchemaDefinition = function(value) { + return jspb.Message.setProto3BytesField(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.registry.v2.RegisterSchemaVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.RegisterSchemaVersionResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.toObject = function(includeInstance, msg) { + var f, obj = { + schemaVersionId: jspb.Message.getFieldWithDefault(msg, 1, ""), + versionNumber: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse; + return proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.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.setSchemaVersionId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersionNumber(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.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.registry.v2.RegisterSchemaVersionResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaVersionId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVersionNumber(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional string schema_version_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.prototype.setSchemaVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 version_number = 2; + * @return {number} + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.prototype.getVersionNumber = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse.prototype.setVersionNumber = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.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.registry.v2.DeleteSchemaVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.DeleteSchemaVersionsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + versionsList: (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.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest; + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.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.setSchemaName(value); + break; + case 2: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]); + for (var i = 0; i < values.length; i++) { + msg.addVersions(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.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.registry.v2.DeleteSchemaVersionsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVersionsList(); + if (f.length > 0) { + writer.writePackedInt32( + 2, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.prototype.setSchemaName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated int32 versions = 2; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.prototype.getVersionsList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.prototype.setVersionsList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {number} value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.prototype.addVersions = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest.prototype.clearVersionsList = function() { + return this.setVersionsList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.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.registry.v2.DeleteSchemaVersionsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.DeleteSchemaVersionsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + errorsList: jspb.Message.toObjectList(msg.getErrorsList(), + proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.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.registry.v2.DeleteSchemaVersionsResponse} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse; + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.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.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.deserializeBinaryFromReader); + msg.addErrors(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.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.registry.v2.DeleteSchemaVersionsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getErrorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.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.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.toObject = function(includeInstance, msg) { + var f, obj = { + versionNumber: jspb.Message.getFieldWithDefault(msg, 1, 0), + error: (f = msg.getError()) && core_pb.ErrorDetails.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.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError; + return proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.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.setVersionNumber(value); + break; + case 2: + var value = new core_pb.ErrorDetails; + reader.readMessage(value,core_pb.ErrorDetails.deserializeBinaryFromReader); + msg.setError(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.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.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersionNumber(); + if (f !== 0) { + writer.writeInt32( + 1, + f + ); + } + f = message.getError(); + if (f != null) { + writer.writeMessage( + 2, + f, + core_pb.ErrorDetails.serializeBinaryToWriter + ); + } +}; + + +/** + * optional int32 version_number = 1; + * @return {number} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.prototype.getVersionNumber = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.prototype.setVersionNumber = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional ErrorDetails error = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.prototype.getError = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.ErrorDetails} */ ( + jspb.Message.getWrapperField(this, core_pb.ErrorDetails, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.ErrorDetails|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} returns this +*/ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.prototype.setError = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.prototype.clearError = function() { + return this.setError(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError.prototype.hasError = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated SchemaVersionError errors = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.prototype.getErrorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.prototype.setErrorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError} + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.prototype.addErrors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.SchemaVersionError, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse.prototype.clearErrorsList = function() { + return this.setErrorsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will 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.registry.v2.SchemaVersion.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.SchemaVersion.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.SchemaVersion} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.toObject = function(includeInstance, msg) { + var f, obj = { + schemaVersionId: jspb.Message.getFieldWithDefault(msg, 1, ""), + versionNumber: jspb.Message.getFieldWithDefault(msg, 2, 0), + schemaDefinition: msg.getSchemaDefinition_asB64(), + dataFormat: jspb.Message.getFieldWithDefault(msg, 4, 0), + registeredAt: (f = msg.getRegisteredAt()) && 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.registry.v2.SchemaVersion} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.SchemaVersion; + return proto.kurrentdb.protocol.registry.v2.SchemaVersion.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.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.setSchemaVersionId(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersionNumber(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSchemaDefinition(value); + break; + case 4: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (reader.readEnum()); + msg.setDataFormat(value); + break; + case 5: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setRegisteredAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.SchemaVersion.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.registry.v2.SchemaVersion} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaVersionId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getVersionNumber(); + if (f !== 0) { + writer.writeInt32( + 2, + f + ); + } + f = message.getSchemaDefinition_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getDataFormat(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } + f = message.getRegisteredAt(); + if (f != null) { + writer.writeMessage( + 5, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string schema_version_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.setSchemaVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 version_number = 2; + * @return {number} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.getVersionNumber = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.setVersionNumber = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + +/** + * optional bytes schema_definition = 3; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.getSchemaDefinition = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes schema_definition = 3; + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.getSchemaDefinition_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSchemaDefinition())); +}; + + +/** + * optional bytes schema_definition = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.getSchemaDefinition_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSchemaDefinition())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.setSchemaDefinition = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional SchemaDataFormat data_format = 4; + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.getDataFormat = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.setDataFormat = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * optional google.protobuf.Timestamp registered_at = 5; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.getRegisteredAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.setRegisteredAt = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.clearRegisteredAt = function() { + return this.setRegisteredAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaVersion.prototype.hasRegisteredAt = 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.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.GetSchemaVersionByIdRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaVersionId: 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.registry.v2.GetSchemaVersionByIdRequest} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest; + return proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.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.setSchemaVersionId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.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.registry.v2.GetSchemaVersionByIdRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaVersionId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string schema_version_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest.prototype.setSchemaVersionId = 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.registry.v2.GetSchemaVersionByIdResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.GetSchemaVersionByIdResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.toObject = function(includeInstance, msg) { + var f, obj = { + version: (f = msg.getVersion()) && proto.kurrentdb.protocol.registry.v2.SchemaVersion.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.registry.v2.GetSchemaVersionByIdResponse} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse; + return proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.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.registry.v2.SchemaVersion; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaVersion.deserializeBinaryFromReader); + msg.setVersion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.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.registry.v2.GetSchemaVersionByIdResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.SchemaVersion.serializeBinaryToWriter + ); + } +}; + + +/** + * optional SchemaVersion version = 1; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaVersion} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.prototype.getVersion = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaVersion} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaVersion, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaVersion|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.prototype.setVersion = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.prototype.clearVersion = function() { + return this.setVersion(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse.prototype.hasVersion = 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.registry.v2.GetSchemaVersionRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.GetSchemaVersionRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + versionNumber: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest; + return proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.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.setSchemaName(value); + break; + case 2: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersionNumber(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.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.registry.v2.GetSchemaVersionRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {number} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeInt32( + 2, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.prototype.setSchemaName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int32 version_number = 2; + * @return {number} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.prototype.getVersionNumber = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.prototype.setVersionNumber = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.prototype.clearVersionNumber = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionRequest.prototype.hasVersionNumber = 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.registry.v2.GetSchemaVersionResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.GetSchemaVersionResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.toObject = function(includeInstance, msg) { + var f, obj = { + version: (f = msg.getVersion()) && proto.kurrentdb.protocol.registry.v2.SchemaVersion.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.registry.v2.GetSchemaVersionResponse} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse; + return proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.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.registry.v2.SchemaVersion; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaVersion.deserializeBinaryFromReader); + msg.setVersion(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.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.registry.v2.GetSchemaVersionResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersion(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.SchemaVersion.serializeBinaryToWriter + ); + } +}; + + +/** + * optional SchemaVersion version = 1; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaVersion} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.prototype.getVersion = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaVersion} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaVersion, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaVersion|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.prototype.setVersion = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.prototype.clearVersion = function() { + return this.setVersion(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.GetSchemaVersionResponse.prototype.hasVersion = 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.registry.v2.ListSchemaVersionsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ListSchemaVersionsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + includeDefinition: 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.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest; + return proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.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.setSchemaName(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIncludeDefinition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.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.registry.v2.ListSchemaVersionsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getIncludeDefinition(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.prototype.setSchemaName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool include_definition = 2; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.prototype.getIncludeDefinition = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest.prototype.setIncludeDefinition = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.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.registry.v2.ListSchemaVersionsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ListSchemaVersionsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + versionsList: jspb.Message.toObjectList(msg.getVersionsList(), + proto.kurrentdb.protocol.registry.v2.SchemaVersion.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.registry.v2.ListSchemaVersionsResponse} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse; + return proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.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.registry.v2.SchemaVersion; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaVersion.deserializeBinaryFromReader); + msg.addVersions(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.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.registry.v2.ListSchemaVersionsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getVersionsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.SchemaVersion.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated SchemaVersion versions = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.prototype.getVersionsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaVersion, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.prototype.setVersionsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaVersion=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaVersion} + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.prototype.addVersions = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.registry.v2.SchemaVersion, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse.prototype.clearVersionsList = function() { + return this.setVersionsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will 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.registry.v2.RegisteredSchema.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.RegisteredSchema.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.RegisteredSchema} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + schemaVersionId: jspb.Message.getFieldWithDefault(msg, 2, ""), + versionNumber: jspb.Message.getFieldWithDefault(msg, 3, 0), + schemaDefinition: msg.getSchemaDefinition_asB64(), + dataFormat: jspb.Message.getFieldWithDefault(msg, 5, 0), + compatibility: jspb.Message.getFieldWithDefault(msg, 6, 0), + tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : [], + registeredAt: (f = msg.getRegisteredAt()) && 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.registry.v2.RegisteredSchema} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.RegisteredSchema; + return proto.kurrentdb.protocol.registry.v2.RegisteredSchema.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.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.setSchemaName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSchemaVersionId(value); + break; + case 3: + var value = /** @type {number} */ (reader.readInt32()); + msg.setVersionNumber(value); + break; + case 4: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSchemaDefinition(value); + break; + case 5: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (reader.readEnum()); + msg.setDataFormat(value); + break; + case 6: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (reader.readEnum()); + msg.setCompatibility(value); + break; + case 7: + var value = msg.getTagsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 8: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setRegisteredAt(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.RegisteredSchema.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.registry.v2.RegisteredSchema} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaName(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSchemaVersionId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getVersionNumber(); + if (f !== 0) { + writer.writeInt32( + 3, + f + ); + } + f = message.getSchemaDefinition_asU8(); + if (f.length > 0) { + writer.writeBytes( + 4, + f + ); + } + f = message.getDataFormat(); + if (f !== 0.0) { + writer.writeEnum( + 5, + f + ); + } + f = message.getCompatibility(); + if (f !== 0.0) { + writer.writeEnum( + 6, + f + ); + } + f = message.getTagsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(7, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getRegisteredAt(); + if (f != null) { + writer.writeMessage( + 8, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.setSchemaName = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string schema_version_id = 2; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.setSchemaVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional int32 version_number = 3; + * @return {number} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getVersionNumber = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.setVersionNumber = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional bytes schema_definition = 4; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getSchemaDefinition = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * optional bytes schema_definition = 4; + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getSchemaDefinition_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSchemaDefinition())); +}; + + +/** + * optional bytes schema_definition = 4; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getSchemaDefinition_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSchemaDefinition())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.setSchemaDefinition = function(value) { + return jspb.Message.setProto3BytesField(this, 4, value); +}; + + +/** + * optional SchemaDataFormat data_format = 5; + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getDataFormat = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.setDataFormat = function(value) { + return jspb.Message.setProto3EnumField(this, 5, value); +}; + + +/** + * optional CompatibilityMode compatibility = 6; + * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getCompatibility = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.setCompatibility = function(value) { + return jspb.Message.setProto3EnumField(this, 6, value); +}; + + +/** + * map tags = 7; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getTagsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 7, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.clearTagsMap = function() { + this.getTagsMap().clear(); + return this;}; + + +/** + * optional google.protobuf.Timestamp registered_at = 8; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.getRegisteredAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this +*/ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.setRegisteredAt = function(value) { + return jspb.Message.setWrapperField(this, 8, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} returns this + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.clearRegisteredAt = function() { + return this.setRegisteredAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.RegisteredSchema.prototype.hasRegisteredAt = function() { + return jspb.Message.getField(this, 8) != 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.registry.v2.ListRegisteredSchemasRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ListRegisteredSchemasRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaVersionId: jspb.Message.getFieldWithDefault(msg, 1, ""), + schemaNamePrefix: jspb.Message.getFieldWithDefault(msg, 2, ""), + schemaTagsMap: (f = msg.getSchemaTagsMap()) ? f.toObject(includeInstance, undefined) : [], + includeDefinition: 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.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest; + return proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.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.setSchemaVersionId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSchemaNamePrefix(value); + break; + case 3: + var value = msg.getSchemaTagsMap(); + reader.readMessage(value, function(message, reader) { + jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); + }); + break; + case 4: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setIncludeDefinition(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.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.registry.v2.ListRegisteredSchemasRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getSchemaTagsMap(true); + if (f && f.getLength() > 0) { + f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); + } + f = message.getIncludeDefinition(); + if (f) { + writer.writeBool( + 4, + f + ); + } +}; + + +/** + * optional string schema_version_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.setSchemaVersionId = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.clearSchemaVersionId = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.hasSchemaVersionId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string schema_name_prefix = 2; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.getSchemaNamePrefix = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.setSchemaNamePrefix = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.clearSchemaNamePrefix = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.hasSchemaNamePrefix = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * map schema_tags = 3; + * @param {boolean=} opt_noLazyCreate Do not create the map if + * empty, instead returning `undefined` + * @return {!jspb.Map} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.getSchemaTagsMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 3, opt_noLazyCreate, + null)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.clearSchemaTagsMap = function() { + this.getSchemaTagsMap().clear(); + return this;}; + + +/** + * optional bool include_definition = 4; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.getIncludeDefinition = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest.prototype.setIncludeDefinition = function(value) { + return jspb.Message.setProto3BooleanField(this, 4, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.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.registry.v2.ListRegisteredSchemasResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.ListRegisteredSchemasResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.toObject = function(includeInstance, msg) { + var f, obj = { + schemasList: jspb.Message.toObjectList(msg.getSchemasList(), + proto.kurrentdb.protocol.registry.v2.RegisteredSchema.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.registry.v2.ListRegisteredSchemasResponse} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse; + return proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.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.registry.v2.RegisteredSchema; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.RegisteredSchema.deserializeBinaryFromReader); + msg.addSchemas(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.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.registry.v2.ListRegisteredSchemasResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemasList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.RegisteredSchema.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated RegisteredSchema schemas = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.prototype.getSchemasList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.RegisteredSchema, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.prototype.setSchemasList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.RegisteredSchema} + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.prototype.addSchemas = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.registry.v2.RegisteredSchema, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse.prototype.clearSchemasList = function() { + return this.setSchemasList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.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.registry.v2.BulkRegisterSchemasRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.BulkRegisterSchemasRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.toObject = function(includeInstance, msg) { + var f, obj = { + requestsList: jspb.Message.toObjectList(msg.getRequestsList(), + proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.toObject, includeInstance), + keepOrder: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), + stopOnError: 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.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest; + return proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.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.registry.v2.CreateSchemaRequest; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.deserializeBinaryFromReader); + msg.addRequests(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setKeepOrder(value); + break; + case 3: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setStopOnError(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.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.registry.v2.BulkRegisterSchemasRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getRequestsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest.serializeBinaryToWriter + ); + } + f = message.getKeepOrder(); + if (f) { + writer.writeBool( + 2, + f + ); + } + f = message.getStopOnError(); + if (f) { + writer.writeBool( + 3, + f + ); + } +}; + + +/** + * repeated CreateSchemaRequest requests = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.getRequestsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest} returns this +*/ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.setRequestsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.addRequests = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.registry.v2.CreateSchemaRequest, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.clearRequestsList = function() { + return this.setRequestsList([]); +}; + + +/** + * optional bool keep_order = 2; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.getKeepOrder = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.setKeepOrder = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + +/** + * optional bool stop_on_error = 3; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.getStopOnError = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest.prototype.setStopOnError = function(value) { + return jspb.Message.setProto3BooleanField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.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.registry.v2.BulkRegisterSchemasResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.BulkRegisterSchemasResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.toObject = function(includeInstance, msg) { + var f, obj = { + duration: (f = msg.getDuration()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f), + responsesList: jspb.Message.toObjectList(msg.getResponsesList(), + proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.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.registry.v2.BulkRegisterSchemasResponse} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse; + return proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_duration_pb.Duration; + reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); + msg.setDuration(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.deserializeBinaryFromReader); + msg.addResponses(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.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.registry.v2.BulkRegisterSchemasResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDuration(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_duration_pb.Duration.serializeBinaryToWriter + ); + } + f = message.getResponsesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse.serializeBinaryToWriter + ); + } +}; + + +/** + * optional google.protobuf.Duration duration = 1; + * @return {?proto.google.protobuf.Duration} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.getDuration = function() { + return /** @type{?proto.google.protobuf.Duration} */ ( + jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Duration|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.setDuration = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.clearDuration = function() { + return this.setDuration(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.hasDuration = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * repeated CreateSchemaResponse responses = 2; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.getResponsesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.setResponsesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse} + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.addResponses = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.kurrentdb.protocol.registry.v2.CreateSchemaResponse, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse.prototype.clearResponsesList = function() { + return this.setResponsesList([]); +}; + + +goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2); diff --git a/packages/db-client/generated/registry/service_grpc_pb.d.ts b/packages/db-client/generated/registry/service_grpc_pb.d.ts new file mode 100644 index 00000000..ecfa1cfd --- /dev/null +++ b/packages/db-client/generated/registry/service_grpc_pb.d.ts @@ -0,0 +1,350 @@ +// package: kurrentdb.protocol.registry.v2 +// file: registry/service.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as registry_service_pb from "../registry/service_pb"; +import * as registry_groups_pb from "../registry/groups_pb"; +import * as registry_schemas_pb from "../registry/schemas_pb"; +import * as registry_validation_pb from "../registry/validation_pb"; + +interface ISchemaRegistryServiceService extends grpc.ServiceDefinition { + createSchemaGroup: ISchemaRegistryServiceService_ICreateSchemaGroup; + updateSchemaGroup: ISchemaRegistryServiceService_IUpdateSchemaGroup; + deleteSchemaGroup: ISchemaRegistryServiceService_IDeleteSchemaGroup; + getSchemaGroup: ISchemaRegistryServiceService_IGetSchemaGroup; + listSchemaGroups: ISchemaRegistryServiceService_IListSchemaGroups; + createSchema: ISchemaRegistryServiceService_ICreateSchema; + updateSchema: ISchemaRegistryServiceService_IUpdateSchema; + deleteSchema: ISchemaRegistryServiceService_IDeleteSchema; + getSchema: ISchemaRegistryServiceService_IGetSchema; + listSchemas: ISchemaRegistryServiceService_IListSchemas; + lookupSchemaName: ISchemaRegistryServiceService_ILookupSchemaName; + registerSchemaVersion: ISchemaRegistryServiceService_IRegisterSchemaVersion; + deleteSchemaVersions: ISchemaRegistryServiceService_IDeleteSchemaVersions; + getSchemaVersion: ISchemaRegistryServiceService_IGetSchemaVersion; + getSchemaVersionById: ISchemaRegistryServiceService_IGetSchemaVersionById; + listSchemaVersions: ISchemaRegistryServiceService_IListSchemaVersions; + listRegisteredSchemas: ISchemaRegistryServiceService_IListRegisteredSchemas; + bulkRegisterSchemas: ISchemaRegistryServiceService_IBulkRegisterSchemas; + checkSchemaCompatibility: ISchemaRegistryServiceService_ICheckSchemaCompatibility; +} + +interface ISchemaRegistryServiceService_ICreateSchemaGroup extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/CreateSchemaGroup"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IUpdateSchemaGroup extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/UpdateSchemaGroup"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IDeleteSchemaGroup extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/DeleteSchemaGroup"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IGetSchemaGroup extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/GetSchemaGroup"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IListSchemaGroups extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/ListSchemaGroups"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_ICreateSchema extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/CreateSchema"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IUpdateSchema extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/UpdateSchema"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IDeleteSchema extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/DeleteSchema"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IGetSchema extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/GetSchema"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IListSchemas extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/ListSchemas"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_ILookupSchemaName extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/LookupSchemaName"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IRegisterSchemaVersion extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/RegisterSchemaVersion"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IDeleteSchemaVersions extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/DeleteSchemaVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IGetSchemaVersion extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/GetSchemaVersion"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IGetSchemaVersionById extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/GetSchemaVersionById"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IListSchemaVersions extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/ListSchemaVersions"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IListRegisteredSchemas extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/ListRegisteredSchemas"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_IBulkRegisterSchemas extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/BulkRegisterSchemas"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface ISchemaRegistryServiceService_ICheckSchemaCompatibility extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.registry.v2.SchemaRegistryService/CheckSchemaCompatibility"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const SchemaRegistryServiceService: ISchemaRegistryServiceService; + +export interface ISchemaRegistryServiceServer extends grpc.UntypedServiceImplementation { + createSchemaGroup: grpc.handleUnaryCall; + updateSchemaGroup: grpc.handleUnaryCall; + deleteSchemaGroup: grpc.handleUnaryCall; + getSchemaGroup: grpc.handleUnaryCall; + listSchemaGroups: grpc.handleUnaryCall; + createSchema: grpc.handleUnaryCall; + updateSchema: grpc.handleUnaryCall; + deleteSchema: grpc.handleUnaryCall; + getSchema: grpc.handleUnaryCall; + listSchemas: grpc.handleUnaryCall; + lookupSchemaName: grpc.handleUnaryCall; + registerSchemaVersion: grpc.handleUnaryCall; + deleteSchemaVersions: grpc.handleUnaryCall; + getSchemaVersion: grpc.handleUnaryCall; + getSchemaVersionById: grpc.handleUnaryCall; + listSchemaVersions: grpc.handleUnaryCall; + listRegisteredSchemas: grpc.handleUnaryCall; + bulkRegisterSchemas: grpc.handleUnaryCall; + checkSchemaCompatibility: grpc.handleUnaryCall; +} + +export interface ISchemaRegistryServiceClient { + createSchemaGroup(request: registry_groups_pb.CreateSchemaGroupRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.CreateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + createSchemaGroup(request: registry_groups_pb.CreateSchemaGroupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.CreateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + createSchemaGroup(request: registry_groups_pb.CreateSchemaGroupRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.CreateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + updateSchemaGroup(request: registry_groups_pb.UpdateSchemaGroupRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.UpdateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + updateSchemaGroup(request: registry_groups_pb.UpdateSchemaGroupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.UpdateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + updateSchemaGroup(request: registry_groups_pb.UpdateSchemaGroupRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.UpdateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + deleteSchemaGroup(request: registry_groups_pb.DeleteSchemaGroupRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.DeleteSchemaGroupResponse) => void): grpc.ClientUnaryCall; + deleteSchemaGroup(request: registry_groups_pb.DeleteSchemaGroupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.DeleteSchemaGroupResponse) => void): grpc.ClientUnaryCall; + deleteSchemaGroup(request: registry_groups_pb.DeleteSchemaGroupRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.DeleteSchemaGroupResponse) => void): grpc.ClientUnaryCall; + getSchemaGroup(request: registry_groups_pb.GetSchemaGroupRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.GetSchemaGroupResponse) => void): grpc.ClientUnaryCall; + getSchemaGroup(request: registry_groups_pb.GetSchemaGroupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.GetSchemaGroupResponse) => void): grpc.ClientUnaryCall; + getSchemaGroup(request: registry_groups_pb.GetSchemaGroupRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.GetSchemaGroupResponse) => void): grpc.ClientUnaryCall; + listSchemaGroups(request: registry_groups_pb.ListSchemaGroupsRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.ListSchemaGroupsResponse) => void): grpc.ClientUnaryCall; + listSchemaGroups(request: registry_groups_pb.ListSchemaGroupsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.ListSchemaGroupsResponse) => void): grpc.ClientUnaryCall; + listSchemaGroups(request: registry_groups_pb.ListSchemaGroupsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.ListSchemaGroupsResponse) => void): grpc.ClientUnaryCall; + createSchema(request: registry_schemas_pb.CreateSchemaRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.CreateSchemaResponse) => void): grpc.ClientUnaryCall; + createSchema(request: registry_schemas_pb.CreateSchemaRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.CreateSchemaResponse) => void): grpc.ClientUnaryCall; + createSchema(request: registry_schemas_pb.CreateSchemaRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.CreateSchemaResponse) => void): grpc.ClientUnaryCall; + updateSchema(request: registry_schemas_pb.UpdateSchemaRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.UpdateSchemaResponse) => void): grpc.ClientUnaryCall; + updateSchema(request: registry_schemas_pb.UpdateSchemaRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.UpdateSchemaResponse) => void): grpc.ClientUnaryCall; + updateSchema(request: registry_schemas_pb.UpdateSchemaRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.UpdateSchemaResponse) => void): grpc.ClientUnaryCall; + deleteSchema(request: registry_schemas_pb.DeleteSchemaRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaResponse) => void): grpc.ClientUnaryCall; + deleteSchema(request: registry_schemas_pb.DeleteSchemaRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaResponse) => void): grpc.ClientUnaryCall; + deleteSchema(request: registry_schemas_pb.DeleteSchemaRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaResponse) => void): grpc.ClientUnaryCall; + getSchema(request: registry_schemas_pb.GetSchemaRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaResponse) => void): grpc.ClientUnaryCall; + getSchema(request: registry_schemas_pb.GetSchemaRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaResponse) => void): grpc.ClientUnaryCall; + getSchema(request: registry_schemas_pb.GetSchemaRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaResponse) => void): grpc.ClientUnaryCall; + listSchemas(request: registry_schemas_pb.ListSchemasRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemasResponse) => void): grpc.ClientUnaryCall; + listSchemas(request: registry_schemas_pb.ListSchemasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemasResponse) => void): grpc.ClientUnaryCall; + listSchemas(request: registry_schemas_pb.ListSchemasRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemasResponse) => void): grpc.ClientUnaryCall; + lookupSchemaName(request: registry_schemas_pb.LookupSchemaNameRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.LookupSchemaNameResponse) => void): grpc.ClientUnaryCall; + lookupSchemaName(request: registry_schemas_pb.LookupSchemaNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.LookupSchemaNameResponse) => void): grpc.ClientUnaryCall; + lookupSchemaName(request: registry_schemas_pb.LookupSchemaNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.LookupSchemaNameResponse) => void): grpc.ClientUnaryCall; + registerSchemaVersion(request: registry_schemas_pb.RegisterSchemaVersionRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.RegisterSchemaVersionResponse) => void): grpc.ClientUnaryCall; + registerSchemaVersion(request: registry_schemas_pb.RegisterSchemaVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.RegisterSchemaVersionResponse) => void): grpc.ClientUnaryCall; + registerSchemaVersion(request: registry_schemas_pb.RegisterSchemaVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.RegisterSchemaVersionResponse) => void): grpc.ClientUnaryCall; + deleteSchemaVersions(request: registry_schemas_pb.DeleteSchemaVersionsRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + deleteSchemaVersions(request: registry_schemas_pb.DeleteSchemaVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + deleteSchemaVersions(request: registry_schemas_pb.DeleteSchemaVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + getSchemaVersion(request: registry_schemas_pb.GetSchemaVersionRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionResponse) => void): grpc.ClientUnaryCall; + getSchemaVersion(request: registry_schemas_pb.GetSchemaVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionResponse) => void): grpc.ClientUnaryCall; + getSchemaVersion(request: registry_schemas_pb.GetSchemaVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionResponse) => void): grpc.ClientUnaryCall; + getSchemaVersionById(request: registry_schemas_pb.GetSchemaVersionByIdRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionByIdResponse) => void): grpc.ClientUnaryCall; + getSchemaVersionById(request: registry_schemas_pb.GetSchemaVersionByIdRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionByIdResponse) => void): grpc.ClientUnaryCall; + getSchemaVersionById(request: registry_schemas_pb.GetSchemaVersionByIdRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionByIdResponse) => void): grpc.ClientUnaryCall; + listSchemaVersions(request: registry_schemas_pb.ListSchemaVersionsRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + listSchemaVersions(request: registry_schemas_pb.ListSchemaVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + listSchemaVersions(request: registry_schemas_pb.ListSchemaVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + listRegisteredSchemas(request: registry_schemas_pb.ListRegisteredSchemasRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListRegisteredSchemasResponse) => void): grpc.ClientUnaryCall; + listRegisteredSchemas(request: registry_schemas_pb.ListRegisteredSchemasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListRegisteredSchemasResponse) => void): grpc.ClientUnaryCall; + listRegisteredSchemas(request: registry_schemas_pb.ListRegisteredSchemasRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListRegisteredSchemasResponse) => void): grpc.ClientUnaryCall; + bulkRegisterSchemas(request: registry_schemas_pb.BulkRegisterSchemasRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.BulkRegisterSchemasResponse) => void): grpc.ClientUnaryCall; + bulkRegisterSchemas(request: registry_schemas_pb.BulkRegisterSchemasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.BulkRegisterSchemasResponse) => void): grpc.ClientUnaryCall; + bulkRegisterSchemas(request: registry_schemas_pb.BulkRegisterSchemasRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.BulkRegisterSchemasResponse) => void): grpc.ClientUnaryCall; + checkSchemaCompatibility(request: registry_validation_pb.CheckSchemaCompatibilityRequest, callback: (error: grpc.ServiceError | null, response: registry_validation_pb.CheckSchemaCompatibilityResponse) => void): grpc.ClientUnaryCall; + checkSchemaCompatibility(request: registry_validation_pb.CheckSchemaCompatibilityRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_validation_pb.CheckSchemaCompatibilityResponse) => void): grpc.ClientUnaryCall; + checkSchemaCompatibility(request: registry_validation_pb.CheckSchemaCompatibilityRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_validation_pb.CheckSchemaCompatibilityResponse) => void): grpc.ClientUnaryCall; +} + +export class SchemaRegistryServiceClient extends grpc.Client implements ISchemaRegistryServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public createSchemaGroup(request: registry_groups_pb.CreateSchemaGroupRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.CreateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public createSchemaGroup(request: registry_groups_pb.CreateSchemaGroupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.CreateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public createSchemaGroup(request: registry_groups_pb.CreateSchemaGroupRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.CreateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public updateSchemaGroup(request: registry_groups_pb.UpdateSchemaGroupRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.UpdateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public updateSchemaGroup(request: registry_groups_pb.UpdateSchemaGroupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.UpdateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public updateSchemaGroup(request: registry_groups_pb.UpdateSchemaGroupRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.UpdateSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public deleteSchemaGroup(request: registry_groups_pb.DeleteSchemaGroupRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.DeleteSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public deleteSchemaGroup(request: registry_groups_pb.DeleteSchemaGroupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.DeleteSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public deleteSchemaGroup(request: registry_groups_pb.DeleteSchemaGroupRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.DeleteSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public getSchemaGroup(request: registry_groups_pb.GetSchemaGroupRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.GetSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public getSchemaGroup(request: registry_groups_pb.GetSchemaGroupRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.GetSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public getSchemaGroup(request: registry_groups_pb.GetSchemaGroupRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.GetSchemaGroupResponse) => void): grpc.ClientUnaryCall; + public listSchemaGroups(request: registry_groups_pb.ListSchemaGroupsRequest, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.ListSchemaGroupsResponse) => void): grpc.ClientUnaryCall; + public listSchemaGroups(request: registry_groups_pb.ListSchemaGroupsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.ListSchemaGroupsResponse) => void): grpc.ClientUnaryCall; + public listSchemaGroups(request: registry_groups_pb.ListSchemaGroupsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_groups_pb.ListSchemaGroupsResponse) => void): grpc.ClientUnaryCall; + public createSchema(request: registry_schemas_pb.CreateSchemaRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.CreateSchemaResponse) => void): grpc.ClientUnaryCall; + public createSchema(request: registry_schemas_pb.CreateSchemaRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.CreateSchemaResponse) => void): grpc.ClientUnaryCall; + public createSchema(request: registry_schemas_pb.CreateSchemaRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.CreateSchemaResponse) => void): grpc.ClientUnaryCall; + public updateSchema(request: registry_schemas_pb.UpdateSchemaRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.UpdateSchemaResponse) => void): grpc.ClientUnaryCall; + public updateSchema(request: registry_schemas_pb.UpdateSchemaRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.UpdateSchemaResponse) => void): grpc.ClientUnaryCall; + public updateSchema(request: registry_schemas_pb.UpdateSchemaRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.UpdateSchemaResponse) => void): grpc.ClientUnaryCall; + public deleteSchema(request: registry_schemas_pb.DeleteSchemaRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaResponse) => void): grpc.ClientUnaryCall; + public deleteSchema(request: registry_schemas_pb.DeleteSchemaRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaResponse) => void): grpc.ClientUnaryCall; + public deleteSchema(request: registry_schemas_pb.DeleteSchemaRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaResponse) => void): grpc.ClientUnaryCall; + public getSchema(request: registry_schemas_pb.GetSchemaRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaResponse) => void): grpc.ClientUnaryCall; + public getSchema(request: registry_schemas_pb.GetSchemaRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaResponse) => void): grpc.ClientUnaryCall; + public getSchema(request: registry_schemas_pb.GetSchemaRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaResponse) => void): grpc.ClientUnaryCall; + public listSchemas(request: registry_schemas_pb.ListSchemasRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemasResponse) => void): grpc.ClientUnaryCall; + public listSchemas(request: registry_schemas_pb.ListSchemasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemasResponse) => void): grpc.ClientUnaryCall; + public listSchemas(request: registry_schemas_pb.ListSchemasRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemasResponse) => void): grpc.ClientUnaryCall; + public lookupSchemaName(request: registry_schemas_pb.LookupSchemaNameRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.LookupSchemaNameResponse) => void): grpc.ClientUnaryCall; + public lookupSchemaName(request: registry_schemas_pb.LookupSchemaNameRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.LookupSchemaNameResponse) => void): grpc.ClientUnaryCall; + public lookupSchemaName(request: registry_schemas_pb.LookupSchemaNameRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.LookupSchemaNameResponse) => void): grpc.ClientUnaryCall; + public registerSchemaVersion(request: registry_schemas_pb.RegisterSchemaVersionRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.RegisterSchemaVersionResponse) => void): grpc.ClientUnaryCall; + public registerSchemaVersion(request: registry_schemas_pb.RegisterSchemaVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.RegisterSchemaVersionResponse) => void): grpc.ClientUnaryCall; + public registerSchemaVersion(request: registry_schemas_pb.RegisterSchemaVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.RegisterSchemaVersionResponse) => void): grpc.ClientUnaryCall; + public deleteSchemaVersions(request: registry_schemas_pb.DeleteSchemaVersionsRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + public deleteSchemaVersions(request: registry_schemas_pb.DeleteSchemaVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + public deleteSchemaVersions(request: registry_schemas_pb.DeleteSchemaVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.DeleteSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + public getSchemaVersion(request: registry_schemas_pb.GetSchemaVersionRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionResponse) => void): grpc.ClientUnaryCall; + public getSchemaVersion(request: registry_schemas_pb.GetSchemaVersionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionResponse) => void): grpc.ClientUnaryCall; + public getSchemaVersion(request: registry_schemas_pb.GetSchemaVersionRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionResponse) => void): grpc.ClientUnaryCall; + public getSchemaVersionById(request: registry_schemas_pb.GetSchemaVersionByIdRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionByIdResponse) => void): grpc.ClientUnaryCall; + public getSchemaVersionById(request: registry_schemas_pb.GetSchemaVersionByIdRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionByIdResponse) => void): grpc.ClientUnaryCall; + public getSchemaVersionById(request: registry_schemas_pb.GetSchemaVersionByIdRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.GetSchemaVersionByIdResponse) => void): grpc.ClientUnaryCall; + public listSchemaVersions(request: registry_schemas_pb.ListSchemaVersionsRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + public listSchemaVersions(request: registry_schemas_pb.ListSchemaVersionsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + public listSchemaVersions(request: registry_schemas_pb.ListSchemaVersionsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListSchemaVersionsResponse) => void): grpc.ClientUnaryCall; + public listRegisteredSchemas(request: registry_schemas_pb.ListRegisteredSchemasRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListRegisteredSchemasResponse) => void): grpc.ClientUnaryCall; + public listRegisteredSchemas(request: registry_schemas_pb.ListRegisteredSchemasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListRegisteredSchemasResponse) => void): grpc.ClientUnaryCall; + public listRegisteredSchemas(request: registry_schemas_pb.ListRegisteredSchemasRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.ListRegisteredSchemasResponse) => void): grpc.ClientUnaryCall; + public bulkRegisterSchemas(request: registry_schemas_pb.BulkRegisterSchemasRequest, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.BulkRegisterSchemasResponse) => void): grpc.ClientUnaryCall; + public bulkRegisterSchemas(request: registry_schemas_pb.BulkRegisterSchemasRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.BulkRegisterSchemasResponse) => void): grpc.ClientUnaryCall; + public bulkRegisterSchemas(request: registry_schemas_pb.BulkRegisterSchemasRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_schemas_pb.BulkRegisterSchemasResponse) => void): grpc.ClientUnaryCall; + public checkSchemaCompatibility(request: registry_validation_pb.CheckSchemaCompatibilityRequest, callback: (error: grpc.ServiceError | null, response: registry_validation_pb.CheckSchemaCompatibilityResponse) => void): grpc.ClientUnaryCall; + public checkSchemaCompatibility(request: registry_validation_pb.CheckSchemaCompatibilityRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: registry_validation_pb.CheckSchemaCompatibilityResponse) => void): grpc.ClientUnaryCall; + public checkSchemaCompatibility(request: registry_validation_pb.CheckSchemaCompatibilityRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: registry_validation_pb.CheckSchemaCompatibilityResponse) => void): grpc.ClientUnaryCall; +} diff --git a/packages/db-client/generated/registry/service_grpc_pb.js b/packages/db-client/generated/registry/service_grpc_pb.js new file mode 100644 index 00000000..23a4efcd --- /dev/null +++ b/packages/db-client/generated/registry/service_grpc_pb.js @@ -0,0 +1,654 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var registry_groups_pb = require('../registry/groups_pb.js'); +var registry_schemas_pb = require('../registry/schemas_pb.js'); +var registry_validation_pb = require('../registry/validation_pb.js'); + +function serialize_kurrentdb_protocol_registry_v2_BulkRegisterSchemasRequest(arg) { + if (!(arg instanceof registry_schemas_pb.BulkRegisterSchemasRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.BulkRegisterSchemasRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_BulkRegisterSchemasRequest(buffer_arg) { + return registry_schemas_pb.BulkRegisterSchemasRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_BulkRegisterSchemasResponse(arg) { + if (!(arg instanceof registry_schemas_pb.BulkRegisterSchemasResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.BulkRegisterSchemasResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_BulkRegisterSchemasResponse(buffer_arg) { + return registry_schemas_pb.BulkRegisterSchemasResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_CheckSchemaCompatibilityRequest(arg) { + if (!(arg instanceof registry_validation_pb.CheckSchemaCompatibilityRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_CheckSchemaCompatibilityRequest(buffer_arg) { + return registry_validation_pb.CheckSchemaCompatibilityRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_CheckSchemaCompatibilityResponse(arg) { + if (!(arg instanceof registry_validation_pb.CheckSchemaCompatibilityResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_CheckSchemaCompatibilityResponse(buffer_arg) { + return registry_validation_pb.CheckSchemaCompatibilityResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_CreateSchemaGroupRequest(arg) { + if (!(arg instanceof registry_groups_pb.CreateSchemaGroupRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.CreateSchemaGroupRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_CreateSchemaGroupRequest(buffer_arg) { + return registry_groups_pb.CreateSchemaGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_CreateSchemaGroupResponse(arg) { + if (!(arg instanceof registry_groups_pb.CreateSchemaGroupResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.CreateSchemaGroupResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_CreateSchemaGroupResponse(buffer_arg) { + return registry_groups_pb.CreateSchemaGroupResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_CreateSchemaRequest(arg) { + if (!(arg instanceof registry_schemas_pb.CreateSchemaRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.CreateSchemaRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_CreateSchemaRequest(buffer_arg) { + return registry_schemas_pb.CreateSchemaRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_CreateSchemaResponse(arg) { + if (!(arg instanceof registry_schemas_pb.CreateSchemaResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.CreateSchemaResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_CreateSchemaResponse(buffer_arg) { + return registry_schemas_pb.CreateSchemaResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_DeleteSchemaGroupRequest(arg) { + if (!(arg instanceof registry_groups_pb.DeleteSchemaGroupRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.DeleteSchemaGroupRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaGroupRequest(buffer_arg) { + return registry_groups_pb.DeleteSchemaGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_DeleteSchemaGroupResponse(arg) { + if (!(arg instanceof registry_groups_pb.DeleteSchemaGroupResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.DeleteSchemaGroupResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaGroupResponse(buffer_arg) { + return registry_groups_pb.DeleteSchemaGroupResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_DeleteSchemaRequest(arg) { + if (!(arg instanceof registry_schemas_pb.DeleteSchemaRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.DeleteSchemaRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaRequest(buffer_arg) { + return registry_schemas_pb.DeleteSchemaRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_DeleteSchemaResponse(arg) { + if (!(arg instanceof registry_schemas_pb.DeleteSchemaResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.DeleteSchemaResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaResponse(buffer_arg) { + return registry_schemas_pb.DeleteSchemaResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_DeleteSchemaVersionsRequest(arg) { + if (!(arg instanceof registry_schemas_pb.DeleteSchemaVersionsRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.DeleteSchemaVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaVersionsRequest(buffer_arg) { + return registry_schemas_pb.DeleteSchemaVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_DeleteSchemaVersionsResponse(arg) { + if (!(arg instanceof registry_schemas_pb.DeleteSchemaVersionsResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.DeleteSchemaVersionsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaVersionsResponse(buffer_arg) { + return registry_schemas_pb.DeleteSchemaVersionsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_GetSchemaGroupRequest(arg) { + if (!(arg instanceof registry_groups_pb.GetSchemaGroupRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.GetSchemaGroupRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_GetSchemaGroupRequest(buffer_arg) { + return registry_groups_pb.GetSchemaGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_GetSchemaGroupResponse(arg) { + if (!(arg instanceof registry_groups_pb.GetSchemaGroupResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.GetSchemaGroupResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_GetSchemaGroupResponse(buffer_arg) { + return registry_groups_pb.GetSchemaGroupResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_GetSchemaRequest(arg) { + if (!(arg instanceof registry_schemas_pb.GetSchemaRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.GetSchemaRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_GetSchemaRequest(buffer_arg) { + return registry_schemas_pb.GetSchemaRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_GetSchemaResponse(arg) { + if (!(arg instanceof registry_schemas_pb.GetSchemaResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.GetSchemaResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_GetSchemaResponse(buffer_arg) { + return registry_schemas_pb.GetSchemaResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_GetSchemaVersionByIdRequest(arg) { + if (!(arg instanceof registry_schemas_pb.GetSchemaVersionByIdRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.GetSchemaVersionByIdRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_GetSchemaVersionByIdRequest(buffer_arg) { + return registry_schemas_pb.GetSchemaVersionByIdRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_GetSchemaVersionByIdResponse(arg) { + if (!(arg instanceof registry_schemas_pb.GetSchemaVersionByIdResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.GetSchemaVersionByIdResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_GetSchemaVersionByIdResponse(buffer_arg) { + return registry_schemas_pb.GetSchemaVersionByIdResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_GetSchemaVersionRequest(arg) { + if (!(arg instanceof registry_schemas_pb.GetSchemaVersionRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.GetSchemaVersionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_GetSchemaVersionRequest(buffer_arg) { + return registry_schemas_pb.GetSchemaVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_GetSchemaVersionResponse(arg) { + if (!(arg instanceof registry_schemas_pb.GetSchemaVersionResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.GetSchemaVersionResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_GetSchemaVersionResponse(buffer_arg) { + return registry_schemas_pb.GetSchemaVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_ListRegisteredSchemasRequest(arg) { + if (!(arg instanceof registry_schemas_pb.ListRegisteredSchemasRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.ListRegisteredSchemasRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_ListRegisteredSchemasRequest(buffer_arg) { + return registry_schemas_pb.ListRegisteredSchemasRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_ListRegisteredSchemasResponse(arg) { + if (!(arg instanceof registry_schemas_pb.ListRegisteredSchemasResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.ListRegisteredSchemasResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_ListRegisteredSchemasResponse(buffer_arg) { + return registry_schemas_pb.ListRegisteredSchemasResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_ListSchemaGroupsRequest(arg) { + if (!(arg instanceof registry_groups_pb.ListSchemaGroupsRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.ListSchemaGroupsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_ListSchemaGroupsRequest(buffer_arg) { + return registry_groups_pb.ListSchemaGroupsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_ListSchemaGroupsResponse(arg) { + if (!(arg instanceof registry_groups_pb.ListSchemaGroupsResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.ListSchemaGroupsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_ListSchemaGroupsResponse(buffer_arg) { + return registry_groups_pb.ListSchemaGroupsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_ListSchemaVersionsRequest(arg) { + if (!(arg instanceof registry_schemas_pb.ListSchemaVersionsRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.ListSchemaVersionsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_ListSchemaVersionsRequest(buffer_arg) { + return registry_schemas_pb.ListSchemaVersionsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_ListSchemaVersionsResponse(arg) { + if (!(arg instanceof registry_schemas_pb.ListSchemaVersionsResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.ListSchemaVersionsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_ListSchemaVersionsResponse(buffer_arg) { + return registry_schemas_pb.ListSchemaVersionsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_ListSchemasRequest(arg) { + if (!(arg instanceof registry_schemas_pb.ListSchemasRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.ListSchemasRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_ListSchemasRequest(buffer_arg) { + return registry_schemas_pb.ListSchemasRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_ListSchemasResponse(arg) { + if (!(arg instanceof registry_schemas_pb.ListSchemasResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.ListSchemasResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_ListSchemasResponse(buffer_arg) { + return registry_schemas_pb.ListSchemasResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_LookupSchemaNameRequest(arg) { + if (!(arg instanceof registry_schemas_pb.LookupSchemaNameRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.LookupSchemaNameRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_LookupSchemaNameRequest(buffer_arg) { + return registry_schemas_pb.LookupSchemaNameRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_LookupSchemaNameResponse(arg) { + if (!(arg instanceof registry_schemas_pb.LookupSchemaNameResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.LookupSchemaNameResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_LookupSchemaNameResponse(buffer_arg) { + return registry_schemas_pb.LookupSchemaNameResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_RegisterSchemaVersionRequest(arg) { + if (!(arg instanceof registry_schemas_pb.RegisterSchemaVersionRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.RegisterSchemaVersionRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_RegisterSchemaVersionRequest(buffer_arg) { + return registry_schemas_pb.RegisterSchemaVersionRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_RegisterSchemaVersionResponse(arg) { + if (!(arg instanceof registry_schemas_pb.RegisterSchemaVersionResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.RegisterSchemaVersionResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_RegisterSchemaVersionResponse(buffer_arg) { + return registry_schemas_pb.RegisterSchemaVersionResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_UpdateSchemaGroupRequest(arg) { + if (!(arg instanceof registry_groups_pb.UpdateSchemaGroupRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.UpdateSchemaGroupRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_UpdateSchemaGroupRequest(buffer_arg) { + return registry_groups_pb.UpdateSchemaGroupRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_UpdateSchemaGroupResponse(arg) { + if (!(arg instanceof registry_groups_pb.UpdateSchemaGroupResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.UpdateSchemaGroupResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_UpdateSchemaGroupResponse(buffer_arg) { + return registry_groups_pb.UpdateSchemaGroupResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_UpdateSchemaRequest(arg) { + if (!(arg instanceof registry_schemas_pb.UpdateSchemaRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.UpdateSchemaRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_UpdateSchemaRequest(buffer_arg) { + return registry_schemas_pb.UpdateSchemaRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_registry_v2_UpdateSchemaResponse(arg) { + if (!(arg instanceof registry_schemas_pb.UpdateSchemaResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.registry.v2.UpdateSchemaResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_registry_v2_UpdateSchemaResponse(buffer_arg) { + return registry_schemas_pb.UpdateSchemaResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var SchemaRegistryServiceService = exports.SchemaRegistryServiceService = { + createSchemaGroup: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/CreateSchemaGroup', + requestStream: false, + responseStream: false, + requestType: registry_groups_pb.CreateSchemaGroupRequest, + responseType: registry_groups_pb.CreateSchemaGroupResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_CreateSchemaGroupRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_CreateSchemaGroupRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_CreateSchemaGroupResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_CreateSchemaGroupResponse, + }, + updateSchemaGroup: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/UpdateSchemaGroup', + requestStream: false, + responseStream: false, + requestType: registry_groups_pb.UpdateSchemaGroupRequest, + responseType: registry_groups_pb.UpdateSchemaGroupResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_UpdateSchemaGroupRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_UpdateSchemaGroupRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_UpdateSchemaGroupResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_UpdateSchemaGroupResponse, + }, + deleteSchemaGroup: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/DeleteSchemaGroup', + requestStream: false, + responseStream: false, + requestType: registry_groups_pb.DeleteSchemaGroupRequest, + responseType: registry_groups_pb.DeleteSchemaGroupResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_DeleteSchemaGroupRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaGroupRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_DeleteSchemaGroupResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaGroupResponse, + }, + getSchemaGroup: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/GetSchemaGroup', + requestStream: false, + responseStream: false, + requestType: registry_groups_pb.GetSchemaGroupRequest, + responseType: registry_groups_pb.GetSchemaGroupResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_GetSchemaGroupRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_GetSchemaGroupRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_GetSchemaGroupResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_GetSchemaGroupResponse, + }, + listSchemaGroups: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/ListSchemaGroups', + requestStream: false, + responseStream: false, + requestType: registry_groups_pb.ListSchemaGroupsRequest, + responseType: registry_groups_pb.ListSchemaGroupsResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_ListSchemaGroupsRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_ListSchemaGroupsRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_ListSchemaGroupsResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_ListSchemaGroupsResponse, + }, + // =================================================================== +// Schema Management +// =================================================================== +// +createSchema: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/CreateSchema', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.CreateSchemaRequest, + responseType: registry_schemas_pb.CreateSchemaResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_CreateSchemaRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_CreateSchemaRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_CreateSchemaResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_CreateSchemaResponse, + }, + // produce +updateSchema: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/UpdateSchema', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.UpdateSchemaRequest, + responseType: registry_schemas_pb.UpdateSchemaResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_UpdateSchemaRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_UpdateSchemaRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_UpdateSchemaResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_UpdateSchemaResponse, + }, + deleteSchema: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/DeleteSchema', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.DeleteSchemaRequest, + responseType: registry_schemas_pb.DeleteSchemaResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_DeleteSchemaRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_DeleteSchemaResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaResponse, + }, + getSchema: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/GetSchema', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.GetSchemaRequest, + responseType: registry_schemas_pb.GetSchemaResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_GetSchemaRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_GetSchemaRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_GetSchemaResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_GetSchemaResponse, + }, + listSchemas: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/ListSchemas', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.ListSchemasRequest, + responseType: registry_schemas_pb.ListSchemasResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_ListSchemasRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_ListSchemasRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_ListSchemasResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_ListSchemasResponse, + }, + lookupSchemaName: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/LookupSchemaName', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.LookupSchemaNameRequest, + responseType: registry_schemas_pb.LookupSchemaNameResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_LookupSchemaNameRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_LookupSchemaNameRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_LookupSchemaNameResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_LookupSchemaNameResponse, + }, + registerSchemaVersion: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/RegisterSchemaVersion', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.RegisterSchemaVersionRequest, + responseType: registry_schemas_pb.RegisterSchemaVersionResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_RegisterSchemaVersionRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_RegisterSchemaVersionRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_RegisterSchemaVersionResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_RegisterSchemaVersionResponse, + }, + deleteSchemaVersions: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/DeleteSchemaVersions', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.DeleteSchemaVersionsRequest, + responseType: registry_schemas_pb.DeleteSchemaVersionsResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_DeleteSchemaVersionsRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaVersionsRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_DeleteSchemaVersionsResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_DeleteSchemaVersionsResponse, + }, + getSchemaVersion: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/GetSchemaVersion', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.GetSchemaVersionRequest, + responseType: registry_schemas_pb.GetSchemaVersionResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_GetSchemaVersionRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_GetSchemaVersionRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_GetSchemaVersionResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_GetSchemaVersionResponse, + }, + // produce +getSchemaVersionById: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/GetSchemaVersionById', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.GetSchemaVersionByIdRequest, + responseType: registry_schemas_pb.GetSchemaVersionByIdResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_GetSchemaVersionByIdRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_GetSchemaVersionByIdRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_GetSchemaVersionByIdResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_GetSchemaVersionByIdResponse, + }, + listSchemaVersions: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/ListSchemaVersions', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.ListSchemaVersionsRequest, + responseType: registry_schemas_pb.ListSchemaVersionsResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_ListSchemaVersionsRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_ListSchemaVersionsRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_ListSchemaVersionsResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_ListSchemaVersionsResponse, + }, + listRegisteredSchemas: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/ListRegisteredSchemas', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.ListRegisteredSchemasRequest, + responseType: registry_schemas_pb.ListRegisteredSchemasResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_ListRegisteredSchemasRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_ListRegisteredSchemasRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_ListRegisteredSchemasResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_ListRegisteredSchemasResponse, + }, + bulkRegisterSchemas: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/BulkRegisterSchemas', + requestStream: false, + responseStream: false, + requestType: registry_schemas_pb.BulkRegisterSchemasRequest, + responseType: registry_schemas_pb.BulkRegisterSchemasResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_BulkRegisterSchemasRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_BulkRegisterSchemasRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_BulkRegisterSchemasResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_BulkRegisterSchemasResponse, + }, + // =================================================================== +// Schema Compatibility & Validation +// =================================================================== +// +checkSchemaCompatibility: { + path: '/kurrentdb.protocol.registry.v2.SchemaRegistryService/CheckSchemaCompatibility', + requestStream: false, + responseStream: false, + requestType: registry_validation_pb.CheckSchemaCompatibilityRequest, + responseType: registry_validation_pb.CheckSchemaCompatibilityResponse, + requestSerialize: serialize_kurrentdb_protocol_registry_v2_CheckSchemaCompatibilityRequest, + requestDeserialize: deserialize_kurrentdb_protocol_registry_v2_CheckSchemaCompatibilityRequest, + responseSerialize: serialize_kurrentdb_protocol_registry_v2_CheckSchemaCompatibilityResponse, + responseDeserialize: deserialize_kurrentdb_protocol_registry_v2_CheckSchemaCompatibilityResponse, + }, + // consume +}; + +exports.SchemaRegistryServiceClient = grpc.makeGenericClientConstructor(SchemaRegistryServiceService, 'SchemaRegistryService'); +// =================================================================== +// Schema Group Management +// =================================================================== diff --git a/packages/db-client/generated/registry/service_pb.d.ts b/packages/db-client/generated/registry/service_pb.d.ts new file mode 100644 index 00000000..ada0b297 --- /dev/null +++ b/packages/db-client/generated/registry/service_pb.d.ts @@ -0,0 +1,10 @@ +// package: kurrentdb.protocol.registry.v2 +// file: registry/service.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as registry_groups_pb from "../registry/groups_pb"; +import * as registry_schemas_pb from "../registry/schemas_pb"; +import * as registry_validation_pb from "../registry/validation_pb"; diff --git a/packages/db-client/generated/registry/service_pb.js b/packages/db-client/generated/registry/service_pb.js new file mode 100644 index 00000000..5d4f55b7 --- /dev/null +++ b/packages/db-client/generated/registry/service_pb.js @@ -0,0 +1,29 @@ +// source: registry/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 registry_groups_pb = require('../registry/groups_pb.js'); +goog.object.extend(proto, registry_groups_pb); +var registry_schemas_pb = require('../registry/schemas_pb.js'); +goog.object.extend(proto, registry_schemas_pb); +var registry_validation_pb = require('../registry/validation_pb.js'); +goog.object.extend(proto, registry_validation_pb); diff --git a/packages/db-client/generated/registry/shared_grpc_pb.js b/packages/db-client/generated/registry/shared_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/packages/db-client/generated/registry/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/registry/shared_pb.d.ts b/packages/db-client/generated/registry/shared_pb.d.ts new file mode 100644 index 00000000..b79a00a7 --- /dev/null +++ b/packages/db-client/generated/registry/shared_pb.d.ts @@ -0,0 +1,23 @@ +// package: kurrentdb.protocol.registry.v2 +// file: registry/shared.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; + +export enum SchemaDataFormat { + SCHEMA_DATA_FORMAT_UNSPECIFIED = 0, + SCHEMA_DATA_FORMAT_JSON = 1, + SCHEMA_DATA_FORMAT_PROTOBUF = 2, + SCHEMA_DATA_FORMAT_AVRO = 3, + SCHEMA_DATA_FORMAT_BYTES = 4, +} + +export enum CompatibilityMode { + COMPATIBILITY_MODE_UNSPECIFIED = 0, + COMPATIBILITY_MODE_BACKWARD = 1, + COMPATIBILITY_MODE_FORWARD = 2, + COMPATIBILITY_MODE_FULL = 3, + COMPATIBILITY_MODE_NONE = 4, +} diff --git a/packages/db-client/generated/registry/shared_pb.js b/packages/db-client/generated/registry/shared_pb.js new file mode 100644 index 00000000..fb8e8b04 --- /dev/null +++ b/packages/db-client/generated/registry/shared_pb.js @@ -0,0 +1,48 @@ +// source: registry/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)); + +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CompatibilityMode', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaDataFormat', null, global); +/** + * @enum {number} + */ +proto.kurrentdb.protocol.registry.v2.SchemaDataFormat = { + SCHEMA_DATA_FORMAT_UNSPECIFIED: 0, + SCHEMA_DATA_FORMAT_JSON: 1, + SCHEMA_DATA_FORMAT_PROTOBUF: 2, + SCHEMA_DATA_FORMAT_AVRO: 3, + SCHEMA_DATA_FORMAT_BYTES: 4 +}; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.registry.v2.CompatibilityMode = { + COMPATIBILITY_MODE_UNSPECIFIED: 0, + COMPATIBILITY_MODE_BACKWARD: 1, + COMPATIBILITY_MODE_FORWARD: 2, + COMPATIBILITY_MODE_FULL: 3, + COMPATIBILITY_MODE_NONE: 4 +}; + +goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2); diff --git a/packages/db-client/generated/registry/validation_grpc_pb.js b/packages/db-client/generated/registry/validation_grpc_pb.js new file mode 100644 index 00000000..97b3a246 --- /dev/null +++ b/packages/db-client/generated/registry/validation_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/registry/validation_pb.d.ts b/packages/db-client/generated/registry/validation_pb.d.ts new file mode 100644 index 00000000..03bcbfd6 --- /dev/null +++ b/packages/db-client/generated/registry/validation_pb.d.ts @@ -0,0 +1,187 @@ +// package: kurrentdb.protocol.registry.v2 +// file: registry/validation.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as registry_shared_pb from "../registry/shared_pb"; + +export class SchemaCompatibilityError extends jspb.Message { + getKind(): SchemaCompatibilityErrorKind; + setKind(value: SchemaCompatibilityErrorKind): SchemaCompatibilityError; + getDetails(): string; + setDetails(value: string): SchemaCompatibilityError; + + hasPropertyPath(): boolean; + clearPropertyPath(): void; + getPropertyPath(): string | undefined; + setPropertyPath(value: string): SchemaCompatibilityError; + + hasOriginalType(): boolean; + clearOriginalType(): void; + getOriginalType(): string | undefined; + setOriginalType(value: string): SchemaCompatibilityError; + + hasNewType(): boolean; + clearNewType(): void; + getNewType(): string | undefined; + setNewType(value: string): SchemaCompatibilityError; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SchemaCompatibilityError.AsObject; + static toObject(includeInstance: boolean, msg: SchemaCompatibilityError): SchemaCompatibilityError.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SchemaCompatibilityError, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SchemaCompatibilityError; + static deserializeBinaryFromReader(message: SchemaCompatibilityError, reader: jspb.BinaryReader): SchemaCompatibilityError; +} + +export namespace SchemaCompatibilityError { + export type AsObject = { + kind: SchemaCompatibilityErrorKind, + details: string, + propertyPath?: string, + originalType?: string, + newType?: string, + } +} + +export class SchemaCompatibilityResult extends jspb.Message { + getIsCompatible(): boolean; + setIsCompatible(value: boolean): SchemaCompatibilityResult; + getSchemaVersionId(): string; + setSchemaVersionId(value: string): SchemaCompatibilityResult; + clearErrorsList(): void; + getErrorsList(): Array; + setErrorsList(value: Array): SchemaCompatibilityResult; + addErrors(value?: SchemaCompatibilityError, index?: number): SchemaCompatibilityError; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SchemaCompatibilityResult.AsObject; + static toObject(includeInstance: boolean, msg: SchemaCompatibilityResult): SchemaCompatibilityResult.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SchemaCompatibilityResult, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SchemaCompatibilityResult; + static deserializeBinaryFromReader(message: SchemaCompatibilityResult, reader: jspb.BinaryReader): SchemaCompatibilityResult; +} + +export namespace SchemaCompatibilityResult { + export type AsObject = { + isCompatible: boolean, + schemaVersionId: string, + errorsList: Array, + } +} + +export class CheckSchemaCompatibilityRequest extends jspb.Message { + + hasSchemaName(): boolean; + clearSchemaName(): void; + getSchemaName(): string; + setSchemaName(value: string): CheckSchemaCompatibilityRequest; + + hasSchemaVersionId(): boolean; + clearSchemaVersionId(): void; + getSchemaVersionId(): string; + setSchemaVersionId(value: string): CheckSchemaCompatibilityRequest; + getDefinition(): Uint8Array | string; + getDefinition_asU8(): Uint8Array; + getDefinition_asB64(): string; + setDefinition(value: Uint8Array | string): CheckSchemaCompatibilityRequest; + getDataFormat(): registry_shared_pb.SchemaDataFormat; + setDataFormat(value: registry_shared_pb.SchemaDataFormat): CheckSchemaCompatibilityRequest; + + getSchemaIdentifierCase(): CheckSchemaCompatibilityRequest.SchemaIdentifierCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CheckSchemaCompatibilityRequest.AsObject; + static toObject(includeInstance: boolean, msg: CheckSchemaCompatibilityRequest): CheckSchemaCompatibilityRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CheckSchemaCompatibilityRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CheckSchemaCompatibilityRequest; + static deserializeBinaryFromReader(message: CheckSchemaCompatibilityRequest, reader: jspb.BinaryReader): CheckSchemaCompatibilityRequest; +} + +export namespace CheckSchemaCompatibilityRequest { + export type AsObject = { + schemaName: string, + schemaVersionId: string, + definition: Uint8Array | string, + dataFormat: registry_shared_pb.SchemaDataFormat, + } + + export enum SchemaIdentifierCase { + SCHEMA_IDENTIFIER_NOT_SET = 0, + SCHEMA_NAME = 1, + SCHEMA_VERSION_ID = 2, + } + +} + +export class CheckSchemaCompatibilityResponse extends jspb.Message { + + hasValidationResult(): boolean; + clearValidationResult(): void; + getValidationResult(): SchemaCompatibilityResult | undefined; + setValidationResult(value?: SchemaCompatibilityResult): CheckSchemaCompatibilityResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CheckSchemaCompatibilityResponse.AsObject; + static toObject(includeInstance: boolean, msg: CheckSchemaCompatibilityResponse): CheckSchemaCompatibilityResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CheckSchemaCompatibilityResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CheckSchemaCompatibilityResponse; + static deserializeBinaryFromReader(message: CheckSchemaCompatibilityResponse, reader: jspb.BinaryReader): CheckSchemaCompatibilityResponse; +} + +export namespace CheckSchemaCompatibilityResponse { + export type AsObject = { + validationResult?: SchemaCompatibilityResult.AsObject, + } +} + +export class SchemaValidationInfo extends jspb.Message { + getSchemaVersionId(): string; + setSchemaVersionId(value: string): SchemaValidationInfo; + getSchemaDefinition(): Uint8Array | string; + getSchemaDefinition_asU8(): Uint8Array; + getSchemaDefinition_asB64(): string; + setSchemaDefinition(value: Uint8Array | string): SchemaValidationInfo; + getDataFormat(): registry_shared_pb.SchemaDataFormat; + setDataFormat(value: registry_shared_pb.SchemaDataFormat): SchemaValidationInfo; + getCompatibility(): registry_shared_pb.CompatibilityMode; + setCompatibility(value: registry_shared_pb.CompatibilityMode): SchemaValidationInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): SchemaValidationInfo.AsObject; + static toObject(includeInstance: boolean, msg: SchemaValidationInfo): SchemaValidationInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: SchemaValidationInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): SchemaValidationInfo; + static deserializeBinaryFromReader(message: SchemaValidationInfo, reader: jspb.BinaryReader): SchemaValidationInfo; +} + +export namespace SchemaValidationInfo { + export type AsObject = { + schemaVersionId: string, + schemaDefinition: Uint8Array | string, + dataFormat: registry_shared_pb.SchemaDataFormat, + compatibility: registry_shared_pb.CompatibilityMode, + } +} + +export enum SchemaCompatibilityErrorKind { + SCHEMA_COMPATIBILITY_ERROR_KIND_UNSPECIFIED = 0, + SCHEMA_COMPATIBILITY_ERROR_KIND_MISSING_REQUIRED_PROPERTY = 1, + SCHEMA_COMPATIBILITY_ERROR_KIND_INCOMPATIBLE_TYPE_CHANGE = 2, + SCHEMA_COMPATIBILITY_ERROR_KIND_OPTIONAL_TO_REQUIRED = 3, + SCHEMA_COMPATIBILITY_ERROR_KIND_NEW_REQUIRED_PROPERTY = 4, + SCHEMA_COMPATIBILITY_ERROR_KIND_REMOVED_PROPERTY = 5, + SCHEMA_COMPATIBILITY_ERROR_KIND_ARRAY_TYPE_INCOMPATIBILITY = 6, +} diff --git a/packages/db-client/generated/registry/validation_pb.js b/packages/db-client/generated/registry/validation_pb.js new file mode 100644 index 00000000..b3909305 --- /dev/null +++ b/packages/db-client/generated/registry/validation_pb.js @@ -0,0 +1,1376 @@ +// source: registry/validation.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 registry_shared_pb = require('../registry/shared_pb.js'); +goog.object.extend(proto, registry_shared_pb); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.SchemaIdentifierCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityErrorKind', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo', 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.registry.v2.SchemaCompatibilityError = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.SchemaCompatibilityResult = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.CheckSchemaCompatibilityRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.displayName = 'proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.CheckSchemaCompatibilityResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.displayName = 'proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed 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.registry.v2.SchemaValidationInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.displayName = 'proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will 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.registry.v2.SchemaCompatibilityError.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.SchemaCompatibilityError} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.toObject = function(includeInstance, msg) { + var f, obj = { + kind: jspb.Message.getFieldWithDefault(msg, 1, 0), + details: jspb.Message.getFieldWithDefault(msg, 2, ""), + propertyPath: jspb.Message.getFieldWithDefault(msg, 3, ""), + originalType: jspb.Message.getFieldWithDefault(msg, 4, ""), + newType: 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.registry.v2.SchemaCompatibilityError} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError; + return proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.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.registry.v2.SchemaCompatibilityErrorKind} */ (reader.readEnum()); + msg.setKind(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDetails(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setPropertyPath(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.setOriginalType(value); + break; + case 5: + var value = /** @type {string} */ (reader.readString()); + msg.setNewType(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.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.registry.v2.SchemaCompatibilityError} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getKind(); + if (f !== 0.0) { + writer.writeEnum( + 1, + f + ); + } + f = message.getDetails(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 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 SchemaCompatibilityErrorKind kind = 1; + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityErrorKind} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.getKind = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityErrorKind} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityErrorKind} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.setKind = function(value) { + return jspb.Message.setProto3EnumField(this, 1, value); +}; + + +/** + * optional string details = 2; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.getDetails = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.setDetails = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string property_path = 3; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.getPropertyPath = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.setPropertyPath = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.clearPropertyPath = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.hasPropertyPath = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional string original_type = 4; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.getOriginalType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.setOriginalType = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.clearOriginalType = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.hasOriginalType = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional string new_type = 5; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.getNewType = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.setNewType = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.clearNewType = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.prototype.hasNewType = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.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.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.SchemaCompatibilityResult} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.toObject = function(includeInstance, msg) { + var f, obj = { + isCompatible: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + schemaVersionId: jspb.Message.getFieldWithDefault(msg, 2, ""), + errorsList: jspb.Message.toObjectList(msg.getErrorsList(), + proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.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.registry.v2.SchemaCompatibilityResult} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult; + return proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.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.setIsCompatible(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSchemaVersionId(value); + break; + case 3: + var value = new proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.deserializeBinaryFromReader); + msg.addErrors(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.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.registry.v2.SchemaCompatibilityResult} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getIsCompatible(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getSchemaVersionId(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getErrorsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 3, + f, + proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError.serializeBinaryToWriter + ); + } +}; + + +/** + * optional bool is_compatible = 1; + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.getIsCompatible = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.setIsCompatible = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * optional string schema_version_id = 2; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.setSchemaVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * repeated SchemaCompatibilityError errors = 3; + * @return {!Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.getErrorsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult} returns this +*/ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.setErrorsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 3, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.addErrors = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityError, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.prototype.clearErrorsList = function() { + return this.setErrorsList([]); +}; + + + +/** + * 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.registry.v2.CheckSchemaCompatibilityRequest.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.SchemaIdentifierCase = { + SCHEMA_IDENTIFIER_NOT_SET: 0, + SCHEMA_NAME: 1, + SCHEMA_VERSION_ID: 2 +}; + +/** + * @return {proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.SchemaIdentifierCase} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.getSchemaIdentifierCase = function() { + return /** @type {proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.SchemaIdentifierCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.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.registry.v2.CheckSchemaCompatibilityRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.CheckSchemaCompatibilityRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.toObject = function(includeInstance, msg) { + var f, obj = { + schemaName: jspb.Message.getFieldWithDefault(msg, 1, ""), + schemaVersionId: jspb.Message.getFieldWithDefault(msg, 2, ""), + definition: msg.getDefinition_asB64(), + dataFormat: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest; + return proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.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.setSchemaName(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setSchemaVersionId(value); + break; + case 3: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setDefinition(value); + break; + case 4: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (reader.readEnum()); + msg.setDataFormat(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.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.registry.v2.CheckSchemaCompatibilityRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getDefinition_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } + f = message.getDataFormat(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } +}; + + +/** + * optional string schema_name = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.getSchemaName = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.setSchemaName = function(value) { + return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.clearSchemaName = function() { + return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.hasSchemaName = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string schema_version_id = 2; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.setSchemaVersionId = function(value) { + return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.clearSchemaVersionId = function() { + return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.hasSchemaVersionId = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional bytes definition = 3; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.getDefinition = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * optional bytes definition = 3; + * This is a type-conversion wrapper around `getDefinition()` + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.getDefinition_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getDefinition())); +}; + + +/** + * optional bytes definition = 3; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getDefinition()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.getDefinition_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getDefinition())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.setDefinition = function(value) { + return jspb.Message.setProto3BytesField(this, 3, value); +}; + + +/** + * optional SchemaDataFormat data_format = 4; + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.getDataFormat = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest} returns this + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityRequest.prototype.setDataFormat = function(value) { + return jspb.Message.setProto3EnumField(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.registry.v2.CheckSchemaCompatibilityResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.CheckSchemaCompatibilityResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.toObject = function(includeInstance, msg) { + var f, obj = { + validationResult: (f = msg.getValidationResult()) && proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.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.registry.v2.CheckSchemaCompatibilityResponse} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse; + return proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 2: + var value = new proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult; + reader.readMessage(value,proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.deserializeBinaryFromReader); + msg.setValidationResult(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.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.registry.v2.CheckSchemaCompatibilityResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValidationResult(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult.serializeBinaryToWriter + ); + } +}; + + +/** + * optional SchemaCompatibilityResult validation_result = 2; + * @return {?proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.prototype.getValidationResult = function() { + return /** @type{?proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityResult|undefined} value + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse} returns this +*/ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.prototype.setValidationResult = function(value) { + return jspb.Message.setWrapperField(this, 2, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse} returns this + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.prototype.clearValidationResult = function() { + return this.setValidationResult(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.registry.v2.CheckSchemaCompatibilityResponse.prototype.hasValidationResult = 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.registry.v2.SchemaValidationInfo.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} 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.registry.v2.SchemaValidationInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.toObject = function(includeInstance, msg) { + var f, obj = { + schemaVersionId: jspb.Message.getFieldWithDefault(msg, 1, ""), + schemaDefinition: msg.getSchemaDefinition_asB64(), + dataFormat: jspb.Message.getFieldWithDefault(msg, 3, 0), + compatibility: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo; + return proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.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.setSchemaVersionId(value); + break; + case 2: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setSchemaDefinition(value); + break; + case 3: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (reader.readEnum()); + msg.setDataFormat(value); + break; + case 4: + var value = /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (reader.readEnum()); + msg.setCompatibility(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.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.registry.v2.SchemaValidationInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSchemaVersionId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getSchemaDefinition_asU8(); + if (f.length > 0) { + writer.writeBytes( + 2, + f + ); + } + f = message.getDataFormat(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getCompatibility(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } +}; + + +/** + * optional string schema_version_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.getSchemaVersionId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.setSchemaVersionId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bytes schema_definition = 2; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.getSchemaDefinition = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * optional bytes schema_definition = 2; + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {string} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.getSchemaDefinition_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getSchemaDefinition())); +}; + + +/** + * optional bytes schema_definition = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getSchemaDefinition()` + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.getSchemaDefinition_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getSchemaDefinition())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.setSchemaDefinition = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional SchemaDataFormat data_format = 3; + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.getDataFormat = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.SchemaDataFormat} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.setDataFormat = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional CompatibilityMode compatibility = 4; + * @return {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.getCompatibility = function() { + return /** @type {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.kurrentdb.protocol.registry.v2.CompatibilityMode} value + * @return {!proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo} returns this + */ +proto.kurrentdb.protocol.registry.v2.SchemaValidationInfo.prototype.setCompatibility = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.registry.v2.SchemaCompatibilityErrorKind = { + SCHEMA_COMPATIBILITY_ERROR_KIND_UNSPECIFIED: 0, + SCHEMA_COMPATIBILITY_ERROR_KIND_MISSING_REQUIRED_PROPERTY: 1, + SCHEMA_COMPATIBILITY_ERROR_KIND_INCOMPATIBLE_TYPE_CHANGE: 2, + SCHEMA_COMPATIBILITY_ERROR_KIND_OPTIONAL_TO_REQUIRED: 3, + SCHEMA_COMPATIBILITY_ERROR_KIND_NEW_REQUIRED_PROPERTY: 4, + SCHEMA_COMPATIBILITY_ERROR_KIND_REMOVED_PROPERTY: 5, + SCHEMA_COMPATIBILITY_ERROR_KIND_ARRAY_TYPE_INCOMPATIBILITY: 6 +}; + +goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2); diff --git a/packages/db-client/generated/streams/streams_grpc_pb.d.ts b/packages/db-client/generated/streams/streams_grpc_pb.d.ts new file mode 100644 index 00000000..adffc710 --- /dev/null +++ b/packages/db-client/generated/streams/streams_grpc_pb.d.ts @@ -0,0 +1,63 @@ +// package: kurrentdb.protocol.streams.v2 +// file: streams/streams.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as streams_streams_pb from "../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_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +interface IStreamsServiceService extends grpc.ServiceDefinition { + multiStreamAppend: IStreamsServiceService_IMultiStreamAppend; + multiStreamAppendSession: IStreamsServiceService_IMultiStreamAppendSession; +} + +interface IStreamsServiceService_IMultiStreamAppend extends grpc.MethodDefinition { + path: "/kurrentdb.protocol.streams.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.streams.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_streams_pb.MultiStreamAppendRequest, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppend(request: streams_streams_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppend(request: streams_streams_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + multiStreamAppendSession(callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(options: Partial, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + multiStreamAppendSession(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_streams_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_streams_pb.MultiStreamAppendRequest, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppend(request: streams_streams_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppend(request: streams_streams_pb.MultiStreamAppendRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientUnaryCall; + public multiStreamAppendSession(callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(options: Partial, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; + public multiStreamAppendSession(metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: streams_streams_pb.MultiStreamAppendResponse) => void): grpc.ClientWritableStream; +} diff --git a/packages/db-client/generated/streams/streams_grpc_pb.js b/packages/db-client/generated/streams/streams_grpc_pb.js new file mode 100644 index 00000000..9a5c2287 --- /dev/null +++ b/packages/db-client/generated/streams/streams_grpc_pb.js @@ -0,0 +1,78 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var streams_streams_pb = require('../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_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); + +function serialize_kurrentdb_protocol_streams_v2_AppendStreamRequest(arg) { + if (!(arg instanceof streams_streams_pb.AppendStreamRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.streams.v2.AppendStreamRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_streams_v2_AppendStreamRequest(buffer_arg) { + return streams_streams_pb.AppendStreamRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_streams_v2_MultiStreamAppendRequest(arg) { + if (!(arg instanceof streams_streams_pb.MultiStreamAppendRequest)) { + throw new Error('Expected argument of type kurrentdb.protocol.streams.v2.MultiStreamAppendRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_streams_v2_MultiStreamAppendRequest(buffer_arg) { + return streams_streams_pb.MultiStreamAppendRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_kurrentdb_protocol_streams_v2_MultiStreamAppendResponse(arg) { + if (!(arg instanceof streams_streams_pb.MultiStreamAppendResponse)) { + throw new Error('Expected argument of type kurrentdb.protocol.streams.v2.MultiStreamAppendResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_kurrentdb_protocol_streams_v2_MultiStreamAppendResponse(buffer_arg) { + return streams_streams_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.streams.v2.StreamsService/MultiStreamAppend', + requestStream: false, + responseStream: false, + requestType: streams_streams_pb.MultiStreamAppendRequest, + responseType: streams_streams_pb.MultiStreamAppendResponse, + requestSerialize: serialize_kurrentdb_protocol_streams_v2_MultiStreamAppendRequest, + requestDeserialize: deserialize_kurrentdb_protocol_streams_v2_MultiStreamAppendRequest, + responseSerialize: serialize_kurrentdb_protocol_streams_v2_MultiStreamAppendResponse, + responseDeserialize: deserialize_kurrentdb_protocol_streams_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.streams.v2.StreamsService/MultiStreamAppendSession', + requestStream: true, + responseStream: false, + requestType: streams_streams_pb.AppendStreamRequest, + responseType: streams_streams_pb.MultiStreamAppendResponse, + requestSerialize: serialize_kurrentdb_protocol_streams_v2_AppendStreamRequest, + requestDeserialize: deserialize_kurrentdb_protocol_streams_v2_AppendStreamRequest, + responseSerialize: serialize_kurrentdb_protocol_streams_v2_MultiStreamAppendResponse, + responseDeserialize: deserialize_kurrentdb_protocol_streams_v2_MultiStreamAppendResponse, + }, +}; + +exports.StreamsServiceClient = grpc.makeGenericClientConstructor(StreamsServiceService, 'StreamsService'); diff --git a/packages/db-client/generated/streams/streams_pb.d.ts b/packages/db-client/generated/streams/streams_pb.d.ts new file mode 100644 index 00000000..c0ce3abe --- /dev/null +++ b/packages/db-client/generated/streams/streams_pb.d.ts @@ -0,0 +1,544 @@ +// package: kurrentdb.protocol.streams.v2 +// file: 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_struct_pb from "google-protobuf/google/protobuf/struct_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, 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; + + 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, + } + + export enum ErrorCase { + ERROR_NOT_SET = 0, + WRONG_EXPECTED_REVISION = 2, + ACCESS_DENIED = 3, + STREAM_DELETED = 4, + } + +} + +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 { + + hasDeletedAt(): boolean; + clearDeletedAt(): void; + getDeletedAt(): google_protobuf_timestamp_pb.Timestamp | undefined; + setDeletedAt(value?: google_protobuf_timestamp_pb.Timestamp): StreamDeleted; + getTombstoned(): boolean; + setTombstoned(value: boolean): 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 = { + deletedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject, + tombstoned: boolean, + } + } + + 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 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 { + + 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, + } + +} + +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/streams_pb.js b/packages/db-client/generated/streams/streams_pb.js new file mode 100644 index 00000000..8d2e32b4 --- /dev/null +++ b/packages/db-client/generated/streams/streams_pb.js @@ -0,0 +1,3937 @@ +// source: streams/streams.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); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.AppendRecord', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.AppendStreamFailure', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.ErrorCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.AppendStreamRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.AppendStreamResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.ResultCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.DynamicValue', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.DynamicValue.KindCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.DynamicValueList', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.DynamicValueMap', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.ErrorDetails', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.ErrorDetails.TransactionMaxSizeExceeded', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.ExpectedRevisionConstants', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.ResultCase', null, global); +goog.exportSymbol('proto.kurrentdb.protocol.streams.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.streams.v2.AppendRecord = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.AppendRecord, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.AppendRecord.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.AppendStreamRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamFailure = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.AppendStreamFailure, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.AppendStreamResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Success = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Failure = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.ErrorDetails, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.ErrorDetails.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.AccessDenied = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.StreamDeleted = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.TransactionMaxSizeExceeded = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.ErrorDetails.TransactionMaxSizeExceeded, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.ErrorDetails.TransactionMaxSizeExceeded.displayName = 'proto.kurrentdb.protocol.streams.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.streams.v2.DynamicValueList = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.kurrentdb.protocol.streams.v2.DynamicValueList.repeatedFields_, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.DynamicValueList, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.DynamicValueList.displayName = 'proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueMap = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.DynamicValueMap, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.DynamicValueMap.displayName = 'proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_); +}; +goog.inherits(proto.kurrentdb.protocol.streams.v2.DynamicValue, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.kurrentdb.protocol.streams.v2.DynamicValue.displayName = 'proto.kurrentdb.protocol.streams.v2.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.streams.v2.AppendRecord.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendRecord} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.AppendRecord.toObject = function(includeInstance, msg) { + var f, obj = { + recordId: jspb.Message.getFieldWithDefault(msg, 1, ""), + propertiesMap: (f = msg.getPropertiesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protocol.streams.v2.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.streams.v2.AppendRecord} + */ +proto.kurrentdb.protocol.streams.v2.AppendRecord.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.AppendRecord; + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendRecord} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendRecord} + */ +proto.kurrentdb.protocol.streams.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.protocol.streams.v2.DynamicValue.deserializeBinaryFromReader, "", new proto.kurrentdb.protocol.streams.v2.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.streams.v2.AppendRecord.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.AppendRecord} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.protocol.streams.v2.DynamicValue.serializeBinaryToWriter); + } + f = message.getData_asU8(); + if (f.length > 0) { + writer.writeBytes( + 3, + f + ); + } +}; + + +/** + * optional string record_id = 1; + * @return {string} + */ +proto.kurrentdb.protocol.streams.v2.AppendRecord.prototype.getRecordId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendRecord} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendRecord.prototype.setRecordId = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendRecord} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendRecord.prototype.clearRecordId = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendRecord.prototype.getPropertiesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 2, opt_noLazyCreate, + proto.kurrentdb.protocol.streams.v2.DynamicValue)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendRecord} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendRecord.prototype.clearPropertiesMap = function() { + this.getPropertiesMap().clear(); + return this;}; + + +/** + * optional bytes data = 3; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.streams.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.streams.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.streams.v2.AppendRecord.prototype.getData_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getData())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendRecord} returns this + */ +proto.kurrentdb.protocol.streams.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.streams.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.streams.v2.AppendStreamRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, ""), + recordsList: jspb.Message.toObjectList(msg.getRecordsList(), + proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamRequest} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.AppendStreamRequest; + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamRequest} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendRecord; + reader.readMessage(value,proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.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.streams.v2.AppendStreamRequest.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamRequest} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.prototype.setStream = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * repeated AppendRecord records = 2; + * @return {!Array} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.prototype.getRecordsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.streams.v2.AppendRecord, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamRequest} returns this +*/ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.prototype.setRecordsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 2, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.streams.v2.AppendRecord=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.streams.v2.AppendRecord} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.prototype.addRecords = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.kurrentdb.protocol.streams.v2.AppendRecord, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamRequest} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.prototype.clearRecordsList = function() { + return this.setRecordsList([]); +}; + + +/** + * optional sint64 expected_revision = 3; + * @return {string} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.prototype.getExpectedRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamRequest} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.prototype.setExpectedRevision = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamRequest} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.prototype.clearExpectedRevision = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess; + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.prototype.setStream = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional int64 position = 2; + * @return {string} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.prototype.getPosition = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.prototype.setPosition = function(value) { + return jspb.Message.setProto3StringIntField(this, 2, value); +}; + + +/** + * optional int64 stream_revision = 3; + * @return {string} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.prototype.getStreamRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess} returns this + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamFailure.oneofGroups_ = [[2,3,4]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.ErrorCase = { + ERROR_NOT_SET: 0, + WRONG_EXPECTED_REVISION: 2, + ACCESS_DENIED: 3, + STREAM_DELETED: 4 +}; + +/** + * @return {proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.ErrorCase} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.getErrorCase = function() { + return /** @type {proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.ErrorCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamFailure.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamFailure} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.toObject = function(includeInstance, msg) { + var f, obj = { + stream: jspb.Message.getFieldWithDefault(msg, 1, ""), + wrongExpectedRevision: (f = msg.getWrongExpectedRevision()) && proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision.toObject(includeInstance, f), + accessDenied: (f = msg.getAccessDenied()) && proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied.toObject(includeInstance, f), + streamDeleted: (f = msg.getStreamDeleted()) && proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.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.streams.v2.AppendStreamFailure} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.AppendStreamFailure; + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamFailure} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision; + reader.readMessage(value,proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision.deserializeBinaryFromReader); + msg.setWrongExpectedRevision(value); + break; + case 3: + var value = new proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied; + reader.readMessage(value,proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied.deserializeBinaryFromReader); + msg.setAccessDenied(value); + break; + case 4: + var value = new proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted; + reader.readMessage(value,proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader); + msg.setStreamDeleted(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamFailure} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision.serializeBinaryToWriter + ); + } + f = message.getAccessDenied(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied.serializeBinaryToWriter + ); + } + f = message.getStreamDeleted(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string stream = 1; + * @return {string} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.getStream = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.setStream = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional ErrorDetails.WrongExpectedRevision wrong_expected_revision = 2; + * @return {?proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.getWrongExpectedRevision = function() { + return /** @type{?proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision|undefined} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} returns this +*/ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.setWrongExpectedRevision = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.clearWrongExpectedRevision = function() { + return this.setWrongExpectedRevision(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.hasWrongExpectedRevision = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ErrorDetails.AccessDenied access_denied = 3; + * @return {?proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.getAccessDenied = function() { + return /** @type{?proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied, 3)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied|undefined} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} returns this +*/ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.setAccessDenied = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.clearAccessDenied = function() { + return this.setAccessDenied(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.hasAccessDenied = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ErrorDetails.StreamDeleted stream_deleted = 4; + * @return {?proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.getStreamDeleted = function() { + return /** @type{?proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted, 4)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted|undefined} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} returns this +*/ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.setStreamDeleted = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.clearStreamDeleted = function() { + return this.setStreamDeleted(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.prototype.hasStreamDeleted = 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.kurrentdb.protocol.streams.v2.AppendStreamResponse.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.ResultCase = { + RESULT_NOT_SET: 0, + SUCCESS: 1, + FAILURE: 2 +}; + +/** + * @return {proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.ResultCase} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.prototype.getResultCase = function() { + return /** @type {proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.toObject = function(includeInstance, msg) { + var f, obj = { + success: (f = msg.getSuccess()) && proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.toObject(includeInstance, f), + failure: (f = msg.getFailure()) && proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamResponse} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.AppendStreamResponse; + return proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamResponse} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess; + reader.readMessage(value,proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.deserializeBinaryFromReader); + msg.setSuccess(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.streams.v2.AppendStreamFailure; + reader.readMessage(value,proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSuccess(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.serializeBinaryToWriter + ); + } + f = message.getFailure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.serializeBinaryToWriter + ); + } +}; + + +/** + * optional AppendStreamSuccess success = 1; + * @return {?proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.prototype.getSuccess = function() { + return /** @type{?proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess|undefined} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamResponse} returns this +*/ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.prototype.setSuccess = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamResponse} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.prototype.clearSuccess = function() { + return this.setSuccess(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.prototype.hasSuccess = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional AppendStreamFailure failure = 2; + * @return {?proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.prototype.getFailure = function() { + return /** @type{?proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.streams.v2.AppendStreamFailure, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.streams.v2.AppendStreamFailure|undefined} value + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamResponse} returns this +*/ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.prototype.setFailure = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamResponse} returns this + */ +proto.kurrentdb.protocol.streams.v2.AppendStreamResponse.prototype.clearFailure = function() { + return this.setFailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.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.streams.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.streams.v2.MultiStreamAppendRequest.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest.toObject = function(includeInstance, msg) { + var f, obj = { + inputList: jspb.Message.toObjectList(msg.getInputList(), + proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendRequest} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest; + return proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamRequest; + reader.readMessage(value,proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getInputList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.streams.v2.AppendStreamRequest.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AppendStreamRequest input = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest.prototype.getInputList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.streams.v2.AppendStreamRequest, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest} returns this +*/ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest.prototype.setInputList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.streams.v2.AppendStreamRequest=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamRequest} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest.prototype.addInput = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.streams.v2.AppendStreamRequest, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendRequest} returns this + */ +proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.oneofGroups_ = [[1,2]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.ResultCase = { + RESULT_NOT_SET: 0, + SUCCESS: 1, + FAILURE: 2 +}; + +/** + * @return {proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.ResultCase} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.prototype.getResultCase = function() { + return /** @type {proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.ResultCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.toObject = function(includeInstance, msg) { + var f, obj = { + success: (f = msg.getSuccess()) && proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.toObject(includeInstance, f), + failure: (f = msg.getFailure()) && proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse; + return proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Success; + reader.readMessage(value,proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.deserializeBinaryFromReader); + msg.setSuccess(value); + break; + case 2: + var value = new proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure; + reader.readMessage(value,proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getSuccess(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.serializeBinaryToWriter + ); + } + f = message.getFailure(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.serializeBinaryToWriter + ); + } +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Success.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Success} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.toObject = function(includeInstance, msg) { + var f, obj = { + outputList: jspb.Message.toObjectList(msg.getOutputList(), + proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Success} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success; + return proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Success} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamSuccess; + reader.readMessage(value,proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Success.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Success} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOutputList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AppendStreamSuccess output = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.prototype.getOutputList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success} returns this +*/ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.prototype.setOutputList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.prototype.addOutput = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.streams.v2.AppendStreamSuccess, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success} returns this + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success.prototype.clearOutputList = function() { + return this.setOutputList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Failure.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Failure} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.toObject = function(includeInstance, msg) { + var f, obj = { + outputList: jspb.Message.toObjectList(msg.getOutputList(), + proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Failure} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure; + return proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Failure} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.AppendStreamFailure; + reader.readMessage(value,proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Failure.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.MultiStreamAppendResponse.Failure} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getOutputList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.streams.v2.AppendStreamFailure.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated AppendStreamFailure output = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.prototype.getOutputList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.streams.v2.AppendStreamFailure, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure} returns this +*/ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.prototype.setOutputList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.streams.v2.AppendStreamFailure} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.prototype.addOutput = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.streams.v2.AppendStreamFailure, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure} returns this + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure.prototype.clearOutputList = function() { + return this.setOutputList([]); +}; + + +/** + * optional Success success = 1; + * @return {?proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.prototype.getSuccess = function() { + return /** @type{?proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success, 1)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Success|undefined} value + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse} returns this +*/ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.prototype.setSuccess = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse} returns this + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.prototype.clearSuccess = function() { + return this.setSuccess(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.prototype.hasSuccess = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional Failure failure = 2; + * @return {?proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure} + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.prototype.getFailure = function() { + return /** @type{?proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure} */ ( + jspb.Message.getWrapperField(this, proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure, 2)); +}; + + +/** + * @param {?proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.Failure|undefined} value + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse} returns this +*/ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.prototype.setFailure = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse} returns this + */ +proto.kurrentdb.protocol.streams.v2.MultiStreamAppendResponse.prototype.clearFailure = function() { + return this.setFailure(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.ErrorDetails; + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.AccessDenied.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.AccessDenied} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied; + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.AccessDenied} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.AccessDenied.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.AccessDenied} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.AccessDenied.prototype.getReason = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.AccessDenied} returns this + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.StreamDeleted.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.StreamDeleted} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.toObject = function(includeInstance, msg) { + var f, obj = { + deletedAt: (f = msg.getDeletedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f), + tombstoned: 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.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted; + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.StreamDeleted} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new google_protobuf_timestamp_pb.Timestamp; + reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); + msg.setDeletedAt(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setTombstoned(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.StreamDeleted} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getDeletedAt(); + if (f != null) { + writer.writeMessage( + 1, + f, + google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter + ); + } + f = message.getTombstoned(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional google.protobuf.Timestamp deleted_at = 1; + * @return {?proto.google.protobuf.Timestamp} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.prototype.getDeletedAt = function() { + return /** @type{?proto.google.protobuf.Timestamp} */ ( + jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1)); +}; + + +/** + * @param {?proto.google.protobuf.Timestamp|undefined} value + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted} returns this +*/ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.prototype.setDeletedAt = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted} returns this + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.prototype.clearDeletedAt = function() { + return this.setDeletedAt(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.prototype.hasDeletedAt = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional bool tombstoned = 2; + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.prototype.getTombstoned = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted} returns this + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.StreamDeleted.prototype.setTombstoned = function(value) { + return jspb.Message.setProto3BooleanField(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.streams.v2.ErrorDetails.WrongExpectedRevision.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision; + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.WrongExpectedRevision.prototype.getStreamRevision = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.WrongExpectedRevision} returns this + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.TransactionMaxSizeExceeded} + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.TransactionMaxSizeExceeded.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.ErrorDetails.TransactionMaxSizeExceeded; + return proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.TransactionMaxSizeExceeded} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.TransactionMaxSizeExceeded} + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.TransactionMaxSizeExceeded} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.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.streams.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.getMaxSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.streams.v2.ErrorDetails.TransactionMaxSizeExceeded} returns this + */ +proto.kurrentdb.protocol.streams.v2.ErrorDetails.TransactionMaxSizeExceeded.prototype.setMaxSize = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueList.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueList} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.DynamicValueList.toObject = function(includeInstance, msg) { + var f, obj = { + valuesList: jspb.Message.toObjectList(msg.getValuesList(), + proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueList} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValueList.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.DynamicValueList; + return proto.kurrentdb.protocol.streams.v2.DynamicValueList.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.streams.v2.DynamicValueList} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValueList} + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue; + reader.readMessage(value,proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueList.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueList} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.DynamicValueList.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getValuesList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 1, + f, + proto.kurrentdb.protocol.streams.v2.DynamicValue.serializeBinaryToWriter + ); + } +}; + + +/** + * repeated DynamicValue values = 1; + * @return {!Array} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValueList.prototype.getValuesList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.kurrentdb.protocol.streams.v2.DynamicValue, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValueList} returns this +*/ +proto.kurrentdb.protocol.streams.v2.DynamicValueList.prototype.setValuesList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 1, value); +}; + + +/** + * @param {!proto.kurrentdb.protocol.streams.v2.DynamicValue=} opt_value + * @param {number=} opt_index + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValueList.prototype.addValues = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.kurrentdb.protocol.streams.v2.DynamicValue, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValueList} returns this + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueMap.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueMap} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.DynamicValueMap.toObject = function(includeInstance, msg) { + var f, obj = { + valuesMap: (f = msg.getValuesMap()) ? f.toObject(includeInstance, proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueMap} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValueMap.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.DynamicValueMap; + return proto.kurrentdb.protocol.streams.v2.DynamicValueMap.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.streams.v2.DynamicValueMap} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValueMap} + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue.deserializeBinaryFromReader, "", new proto.kurrentdb.protocol.streams.v2.DynamicValue()); + }); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValueMap.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValueMap} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.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.streams.v2.DynamicValueMap.prototype.getValuesMap = function(opt_noLazyCreate) { + return /** @type {!jspb.Map} */ ( + jspb.Message.getMapField(this, 1, opt_noLazyCreate, + proto.kurrentdb.protocol.streams.v2.DynamicValue)); +}; + + +/** + * Clears values from the map. The map will be non-null. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValueMap} returns this + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10]]; + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue.KindCase} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.getKindCase = function() { + return /** @type {proto.kurrentdb.protocol.streams.v2.DynamicValue.KindCase} */(jspb.Message.computeOneofCase(this, proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue.prototype.toObject = function(opt_includeInstance) { + return proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.kurrentdb.protocol.streams.v2.DynamicValue; + return proto.kurrentdb.protocol.streams.v2.DynamicValue.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.kurrentdb.protocol.streams.v2.DynamicValue} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.kurrentdb.protocol.streams.v2.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.streams.v2.DynamicValue} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.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.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setNullValue = function(value) { + return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearNullValue = function() { + return jspb.Message.setOneofField(this, 1, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.hasNullValue = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional sint32 int32_value = 2; + * @return {number} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.getInt32Value = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setInt32Value = function(value) { + return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearInt32Value = function() { + return jspb.Message.setOneofField(this, 2, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.hasInt32Value = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional sint64 int64_value = 3; + * @return {number} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.getInt64Value = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setInt64Value = function(value) { + return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearInt64Value = function() { + return jspb.Message.setOneofField(this, 3, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.hasInt64Value = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional bytes bytes_value = 4; + * @return {!(string|Uint8Array)} + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.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.streams.v2.DynamicValue.prototype.getBytesValue_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getBytesValue())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setBytesValue = function(value) { + return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearBytesValue = function() { + return jspb.Message.setOneofField(this, 4, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.hasBytesValue = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional double double_value = 5; + * @return {number} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.getDoubleValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setDoubleValue = function(value) { + return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearDoubleValue = function() { + return jspb.Message.setOneofField(this, 5, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.hasDoubleValue = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional float float_value = 6; + * @return {number} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.getFloatValue = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setFloatValue = function(value) { + return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearFloatValue = function() { + return jspb.Message.setOneofField(this, 6, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.hasFloatValue = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional string string_value = 7; + * @return {string} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.getStringValue = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); +}; + + +/** + * @param {string} value + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setStringValue = function(value) { + return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearStringValue = function() { + return jspb.Message.setOneofField(this, 7, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.hasStringValue = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional bool boolean_value = 8; + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.getBooleanValue = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setBooleanValue = function(value) { + return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearBooleanValue = function() { + return jspb.Message.setOneofField(this, 8, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.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.streams.v2.DynamicValue} returns this +*/ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setTimestampValue = function(value) { + return jspb.Message.setOneofWrapperField(this, 9, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearTimestampValue = function() { + return this.setTimestampValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.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.streams.v2.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.streams.v2.DynamicValue} returns this +*/ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.setDurationValue = function(value) { + return jspb.Message.setOneofWrapperField(this, 10, proto.kurrentdb.protocol.streams.v2.DynamicValue.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.kurrentdb.protocol.streams.v2.DynamicValue} returns this + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.clearDurationValue = function() { + return this.setDurationValue(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.kurrentdb.protocol.streams.v2.DynamicValue.prototype.hasDurationValue = function() { + return jspb.Message.getField(this, 10) != null; +}; + + +/** + * @enum {number} + */ +proto.kurrentdb.protocol.streams.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.streams.v2); diff --git a/packages/db-client/package.json b/packages/db-client/package.json index 9878c9e3..ce1df865 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/v1/* ./protos/v2/*.proto ./protos/v2/*/*.proto", + "generate:sed-insert": "shx sed -i \"s/int64 ([A-z_]*) = ([0-9]*);/int64 \\$1 = \\$2 [jstype = JS_STRING];/g\" ./protos/v1/* ./protos/v2/*.proto ./protos/v2/*/*.proto", "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/v1/*.proto ./protos/v2/*.proto ./protos/v2/*/*.proto --proto_path=./protos/v1 --proto_path=./protos/v2 --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/cluster.proto b/packages/db-client/protos/v1/cluster.proto similarity index 100% rename from packages/db-client/protos/cluster.proto rename to packages/db-client/protos/v1/cluster.proto diff --git a/packages/db-client/protos/code.proto b/packages/db-client/protos/v1/code.proto similarity index 100% rename from packages/db-client/protos/code.proto rename to packages/db-client/protos/v1/code.proto diff --git a/packages/db-client/protos/gossip.proto b/packages/db-client/protos/v1/gossip.proto similarity index 100% rename from packages/db-client/protos/gossip.proto rename to packages/db-client/protos/v1/gossip.proto diff --git a/packages/db-client/protos/monitoring.proto b/packages/db-client/protos/v1/monitoring.proto similarity index 100% rename from packages/db-client/protos/monitoring.proto rename to packages/db-client/protos/v1/monitoring.proto diff --git a/packages/db-client/protos/operations.proto b/packages/db-client/protos/v1/operations.proto similarity index 100% rename from packages/db-client/protos/operations.proto rename to packages/db-client/protos/v1/operations.proto diff --git a/packages/db-client/protos/persistent.proto b/packages/db-client/protos/v1/persistent.proto similarity index 100% rename from packages/db-client/protos/persistent.proto rename to packages/db-client/protos/v1/persistent.proto diff --git a/packages/db-client/protos/projections.proto b/packages/db-client/protos/v1/projections.proto similarity index 100% rename from packages/db-client/protos/projections.proto rename to packages/db-client/protos/v1/projections.proto diff --git a/packages/db-client/protos/serverfeatures.proto b/packages/db-client/protos/v1/serverfeatures.proto similarity index 100% rename from packages/db-client/protos/serverfeatures.proto rename to packages/db-client/protos/v1/serverfeatures.proto diff --git a/packages/db-client/protos/shared.proto b/packages/db-client/protos/v1/shared.proto similarity index 100% rename from packages/db-client/protos/shared.proto rename to packages/db-client/protos/v1/shared.proto diff --git a/packages/db-client/protos/status.proto b/packages/db-client/protos/v1/status.proto similarity index 100% rename from packages/db-client/protos/status.proto rename to packages/db-client/protos/v1/status.proto diff --git a/packages/db-client/protos/streams.proto b/packages/db-client/protos/v1/streams.proto similarity index 100% rename from packages/db-client/protos/streams.proto rename to packages/db-client/protos/v1/streams.proto diff --git a/packages/db-client/protos/users.proto b/packages/db-client/protos/v1/users.proto similarity index 100% rename from packages/db-client/protos/users.proto rename to packages/db-client/protos/v1/users.proto diff --git a/packages/db-client/protos/v2/core.proto b/packages/db-client/protos/v2/core.proto new file mode 100644 index 00000000..53b21fb9 --- /dev/null +++ b/packages/db-client/protos/v2/core.proto @@ -0,0 +1,12 @@ +syntax = "proto3"; + +package kurrentdb.protocol.registry.v2; + +option csharp_namespace = "KurrentDB.Protocol.Registry.V2"; +option java_package = "io.kurrentdb.protocol.registry.v2"; +option java_multiple_files = true; + +message ErrorDetails { + string code = 1; // Standardized string to programmatically identify the error. + string message = 2; // Detailed error description and debugging information. +} \ No newline at end of file diff --git a/packages/db-client/protos/v2/registry/groups.proto b/packages/db-client/protos/v2/registry/groups.proto new file mode 100644 index 00000000..45138a35 --- /dev/null +++ b/packages/db-client/protos/v2/registry/groups.proto @@ -0,0 +1,127 @@ +syntax = "proto3"; + +package kurrentdb.protocol.registry.v2; + +option csharp_namespace = "KurrentDB.Protocol.Registry.V2"; +option java_package = "io.kurrentdb.protocol.registry.v2"; +option java_multiple_files = true; + +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "registry/shared.proto"; + +message AutoRegistrationSettings { + bool enabled = 1; +} + +message ValidationSettings { + bool enabled = 1; +} + +message CompatibilitySettings { + bool enforce = 1; + CompatibilityMode mode = 2; +} + +message DataFormatSettings { + bool enforce = 1; + SchemaDataFormat format = 2; +} + +enum StreamFilterType { + CONSUME_FILTER_TYPE_UNSPECIFIED = 0; + CONSUME_FILTER_TYPE_REGEX = 1; + CONSUME_FILTER_TYPE_CATEGORY = 2; +} + +message StreamFilter { + StreamFilterType filter_type = 1; + string expression = 2; +} + +message StreamFilterSettings { + bool enforce = 1; + StreamFilter filter = 2; +} + +message SchemaGroupDetails { + string name = 1; + optional string description = 2; + map tags = 3; + + // bool disable_auto_registration = 4; // Controls automatic registration for the schema group + // bool disable_validation = 5; // Controls validation for the schema group + // bool enforce_data_format = 6; // Controls data format enforcement for the schema group + // bool enforce_compatibility = 7; // Controls compatibility enforcement for the schema group + // SchemaFormat data_format = 8; // Format of all schemas in the group + // CompatibilityMode compatibility = 9; // Compatibility mode enforced for all schemas in the group + // StreamFilter stream_filter = 10; // Filter that restricts the schemas to a specific set of streams + + AutoRegistrationSettings auto_registration = 11; // Settings for automatic registration + ValidationSettings validation = 12; // Settings for schema validation + CompatibilitySettings compatibility = 13; // Settings for compatibility mode + DataFormatSettings data_format = 14; // Settings for data format enforcement + StreamFilterSettings stream_filter = 15; // Settings for stream filtering +} + +message SchemaGroup { + // Unique identifier of the schema group + string group_id = 1; + // Details of the schema group + SchemaGroupDetails details = 2; + google.protobuf.Timestamp created_at = 5; + google.protobuf.Timestamp updated_at = 6; +} + +// Command to create a new schema group with optional identifier and required configuration +message CreateSchemaGroupRequest { + optional string group_id = 1; // Unique identifier of the schema group + SchemaGroupDetails details = 2; // Details of the schema group to be created +} + +// Response returned after successful schema group creation +message CreateSchemaGroupResponse { + string group_id = 1; // Unique identifier of the schema group +} + +// Command to update an existing schema group's details with field masking support +message UpdateSchemaGroupRequest { + // Unique identifier of the schema group + string group_id = 1; + // Details of the schema group to be updated + SchemaGroupDetails details = 2; + // Specifies which fields to update. See https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask + google.protobuf.FieldMask update_mask = 3; +} + +// Response returned after successful schema group details update +message UpdateSchemaGroupResponse {} + +// Command to remove an existing schema group by identifier +message DeleteSchemaGroupRequest { + string group_id = 1; // Unique identifier of the schema group +} + +// Empty response returned after successful schema group deletion +message DeleteSchemaGroupResponse {} + +// Query to retrieve a specific schema group by identifier +message GetSchemaGroupRequest { + string group_id = 1; +} + +// Response containing the details of the requested schema group +message GetSchemaGroupResponse { + SchemaGroup group = 1; +} + +// Query to list schema groups with optional name prefix filter +message ListSchemaGroupsRequest { + google.protobuf.StringValue group_name_prefix = 1; +} + +// Response containing a list of schema groups matching the query +message ListSchemaGroupsResponse { + repeated SchemaGroup groups = 1; +} \ No newline at end of file diff --git a/packages/db-client/protos/v2/registry/schemas.proto b/packages/db-client/protos/v2/registry/schemas.proto new file mode 100644 index 00000000..ff35d6a3 --- /dev/null +++ b/packages/db-client/protos/v2/registry/schemas.proto @@ -0,0 +1,193 @@ +syntax = "proto3"; + +package kurrentdb.protocol.registry.v2; + +option csharp_namespace = "KurrentDB.Protocol.Registry.V2"; +option java_package = "io.kurrentdb.protocol.registry.v2"; +option java_multiple_files = true; + +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/protobuf/duration.proto"; +import "registry/shared.proto"; +import "core.proto"; + +message SchemaDetails { + SchemaDataFormat data_format = 1; + CompatibilityMode compatibility = 2; + optional string description = 3; + map tags = 4; +} + +message CreateSchemaRequest { + string schema_name = 1; + SchemaDetails details = 2; + optional bytes schema_definition = 3; +} + +message CreateSchemaResponse { + string schema_version_id = 1; + int32 version_number = 2; +} + +message UpdateSchemaRequest { + // The name of the schema to update. + string schema_name = 1; + // description and tags only + SchemaDetails details = 2; + // Specifies which fields to update. See https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask + google.protobuf.FieldMask update_mask = 3; +} + +message UpdateSchemaResponse {} + +message DeleteSchemaRequest { + string schema_name = 1; +} + +message DeleteSchemaResponse {} + +message Schema { + string schema_name = 1; + SchemaDetails details = 2; + int32 latest_schema_version = 4; + google.protobuf.Timestamp created_at = 5; + google.protobuf.Timestamp updated_at = 6; +} + +message GetSchemaRequest { + string schema_name = 1; +} + +message GetSchemaResponse { + Schema schema = 1; +} + +// message SchemaListItem { +// string schema_name = 1; +// SchemaFormat data_format = 2; +// CompatibilityMode compatibility = 3; +// optional string description = 4; +// repeated string tags = 5; +// int32 latest_schema_version = 6; +// google.protobuf.Timestamp created_at = 7; +// google.protobuf.Timestamp updated_at = 8; // should update time use the registered_at of the version? +// } + +message ListSchemasRequest { + // The prefix of the schema name. If specified, only schemas with the specified prefix are returned. + optional string schema_name_prefix = 1; + // The tags to filter the schemas. If specified, only schemas with the specified tags are returned. + map schema_tags = 2; +} + +message ListSchemasResponse { + repeated Schema schemas = 1; +} + +message LookupSchemaNameRequest { + string schema_version_id = 1; +} + +message LookupSchemaNameResponse { + string schema_name = 1; +} + +message RegisterSchemaVersionRequest { + string schema_name = 1; + bytes schema_definition = 2; +} + +message RegisterSchemaVersionResponse { + string schema_version_id = 1; + int32 version_number = 2; +} + +message DeleteSchemaVersionsRequest { + string schema_name = 1; + repeated int32 versions = 2; +} + +message DeleteSchemaVersionsResponse { + repeated SchemaVersionError errors = 1; + + message SchemaVersionError { + int32 version_number = 1; + ErrorDetails error = 2; + } +} + +message SchemaVersion { + string schema_version_id = 1; + int32 version_number = 2; + bytes schema_definition = 3; + SchemaDataFormat data_format = 4; + google.protobuf.Timestamp registered_at = 5; +} + +message GetSchemaVersionByIdRequest { + string schema_version_id = 1; +} + +message GetSchemaVersionByIdResponse { + SchemaVersion version = 1; +} + +message GetSchemaVersionRequest { + string schema_name = 1; + optional int32 version_number = 2; // without this field, the latest version will be returned +} + +message GetSchemaVersionResponse { + SchemaVersion version = 1; +} + +message ListSchemaVersionsRequest { + string schema_name = 1; + bool include_definition = 2; +} + +message ListSchemaVersionsResponse { + repeated SchemaVersion versions = 1; +} + +// This message represents the latest registered schema version for a specific schema. +message RegisteredSchema { + string schema_name = 1; + string schema_version_id = 2; + int32 version_number = 3; + bytes schema_definition = 4; + SchemaDataFormat data_format = 5; + CompatibilityMode compatibility = 6; + map tags = 7; + google.protobuf.Timestamp registered_at = 8; +} + +// This message is used to request a list of registered schemas. +message ListRegisteredSchemasRequest { + // The unique identifier of the schema version. If specified, only the schema with the specified version ID is returned. + optional string schema_version_id = 1; + // The prefix of the schema name. If specified, only schemas with the specified prefix are returned. + optional string schema_name_prefix = 2; + // The tags to filter the schemas. If specified, only schemas with the specified tags are returned. + map schema_tags = 3; + // If true, the schema definition will be included in the response. + bool include_definition = 4; +} + +message ListRegisteredSchemasResponse { + repeated RegisteredSchema schemas = 1; +} + +message BulkRegisterSchemasRequest { + repeated CreateSchemaRequest requests = 1; + + bool keep_order = 2; + bool stop_on_error = 3; +} + +message BulkRegisterSchemasResponse { + google.protobuf.Duration duration = 1; + + repeated CreateSchemaResponse responses = 2; +} \ No newline at end of file diff --git a/packages/db-client/protos/v2/registry/service.proto b/packages/db-client/protos/v2/registry/service.proto new file mode 100644 index 00000000..4edd7a40 --- /dev/null +++ b/packages/db-client/protos/v2/registry/service.proto @@ -0,0 +1,63 @@ +syntax = "proto3"; + +package kurrentdb.protocol.registry.v2; + +option csharp_namespace = "KurrentDB.Protocol.Registry.V2"; +option java_package = "io.kurrentdb.protocol.registry.v2"; +option java_multiple_files = true; + +import "registry/groups.proto"; +import "registry/schemas.proto"; +import "registry/validation.proto"; + +service SchemaRegistryService { + //=================================================================== + // Schema Group Management + //=================================================================== + + rpc CreateSchemaGroup(CreateSchemaGroupRequest) returns (CreateSchemaGroupResponse); + + rpc UpdateSchemaGroup(UpdateSchemaGroupRequest) returns (UpdateSchemaGroupResponse); + + rpc DeleteSchemaGroup(DeleteSchemaGroupRequest) returns (DeleteSchemaGroupResponse); + + rpc GetSchemaGroup(GetSchemaGroupRequest) returns (GetSchemaGroupResponse); + + rpc ListSchemaGroups(ListSchemaGroupsRequest) returns (ListSchemaGroupsResponse); + + //=================================================================== + // Schema Management + //=================================================================== + + rpc CreateSchema(CreateSchemaRequest) returns (CreateSchemaResponse); // produce + + rpc UpdateSchema(UpdateSchemaRequest) returns (UpdateSchemaResponse); + + rpc DeleteSchema(DeleteSchemaRequest) returns (DeleteSchemaResponse); + + rpc GetSchema(GetSchemaRequest) returns (GetSchemaResponse); + + rpc ListSchemas(ListSchemasRequest) returns (ListSchemasResponse); + + rpc LookupSchemaName(LookupSchemaNameRequest) returns (LookupSchemaNameResponse); + + rpc RegisterSchemaVersion(RegisterSchemaVersionRequest) returns (RegisterSchemaVersionResponse); + + rpc DeleteSchemaVersions(DeleteSchemaVersionsRequest) returns (DeleteSchemaVersionsResponse); + + rpc GetSchemaVersion(GetSchemaVersionRequest) returns (GetSchemaVersionResponse); // produce + + rpc GetSchemaVersionById(GetSchemaVersionByIdRequest) returns (GetSchemaVersionByIdResponse); + + rpc ListSchemaVersions(ListSchemaVersionsRequest) returns (ListSchemaVersionsResponse); + + rpc ListRegisteredSchemas(ListRegisteredSchemasRequest) returns (ListRegisteredSchemasResponse); + + rpc BulkRegisterSchemas(BulkRegisterSchemasRequest) returns (BulkRegisterSchemasResponse); + + //=================================================================== + // Schema Compatibility & Validation + //=================================================================== + + rpc CheckSchemaCompatibility(CheckSchemaCompatibilityRequest) returns (CheckSchemaCompatibilityResponse); // consume +} \ No newline at end of file diff --git a/packages/db-client/protos/v2/registry/shared.proto b/packages/db-client/protos/v2/registry/shared.proto new file mode 100644 index 00000000..8b67572c --- /dev/null +++ b/packages/db-client/protos/v2/registry/shared.proto @@ -0,0 +1,46 @@ +syntax = "proto3"; + +package kurrentdb.protocol.registry.v2; + +option csharp_namespace = "KurrentDB.Protocol.Registry.V2"; +option java_package = "io.kurrentdb.protocol.registry.v2"; +option java_multiple_files = true; + +// Represents the format of the schema data. +enum SchemaDataFormat { + // Default value, should not be used. + SCHEMA_DATA_FORMAT_UNSPECIFIED = 0; + SCHEMA_DATA_FORMAT_JSON = 1; // application/json + SCHEMA_DATA_FORMAT_PROTOBUF = 2; // application/vnd.google.protobuf + SCHEMA_DATA_FORMAT_AVRO = 3; // application/vnd.apache.avro+json + SCHEMA_DATA_FORMAT_BYTES = 4; // application/octet-stream +} + +// Schema compatibility modes define how schema changes are validated against previous versions. +enum CompatibilityMode { + // Default value, should not be used. + COMPATIBILITY_MODE_UNSPECIFIED = 0; + + // Backward compatibility allows new schemas to be used with data written by previous schemas. + // Example: If schema version 1 has a field "name" and schema version 2 adds a new field "age", + // data written with schema version 1 can still be read using schema version 2. + // Example of invalid schema: If schema version 1 has a field "name" and schema version 2 removes the "name" field, + // data written with schema version 1 cannot be read using schema version 2. + COMPATIBILITY_MODE_BACKWARD = 1; + + // Forward compatibility allows data written by new schemas to be read by previous schemas. + // Example: If schema version 1 has a field "name" and schema version 2 adds a new field "age", + // data written with schema version 2 can still be read using schema version 1, ignoring the "age" field. + // Example of invalid schema: If schema version 1 has a field "name" and schema version 2 changes the "name" field type, + // data written with schema version 2 cannot be read using schema version 1. + COMPATIBILITY_MODE_FORWARD = 2; + + // Full compatibility ensures both backward and forward compatibility. + // This mode guarantees that new schemas can read data written by old schemas, + // and old schemas can read data written by new schemas. + COMPATIBILITY_MODE_FULL = 3; + + // Disables compatibility checks, allowing any kind of schema change. + // This mode should be used with caution, as it may lead to compatibility issues. + COMPATIBILITY_MODE_NONE = 4; +} \ No newline at end of file diff --git a/packages/db-client/protos/v2/registry/validation.proto b/packages/db-client/protos/v2/registry/validation.proto new file mode 100644 index 00000000..896bf1e7 --- /dev/null +++ b/packages/db-client/protos/v2/registry/validation.proto @@ -0,0 +1,62 @@ +syntax = "proto3"; + +package kurrentdb.protocol.registry.v2; + +option csharp_namespace = "KurrentDB.Protocol.Registry.V2"; +option java_package = "io.kurrentdb.protocol.registry.v2"; +option java_multiple_files = true; + +import "registry/shared.proto"; + +// Represents a schema compatibility error. +message SchemaCompatibilityError { + SchemaCompatibilityErrorKind kind = 1; // The type of compatibility error. + string details = 2; // The error message + + optional string property_path = 3; // The path to the property where the compatibility error occurred. + optional string original_type = 4; // The type of property in the registered schema (e.g. array, bool, number, object) + optional string new_type = 5; // The type of property in the schema being validated (e.g. array, bool, number, object) +} + +// Represents the result of schema compatibility, containing a list of compatibility errors. +message SchemaCompatibilityResult { + // Indicates whether the schema is compatible with the registered schema. + bool is_compatible = 1; + // The schema identifier of the schema being validated. + string schema_version_id = 2; + // A list of schema compatibility errors. + repeated SchemaCompatibilityError errors = 3; +} + +message CheckSchemaCompatibilityRequest { + oneof schema_identifier { + string schema_name = 1; + string schema_version_id = 2; + } + + bytes definition = 3; + SchemaDataFormat data_format = 4; +} + +message CheckSchemaCompatibilityResponse { + SchemaCompatibilityResult validation_result = 2; +} + +// Enum representing different kinds of compatibility errors. +enum SchemaCompatibilityErrorKind { + SCHEMA_COMPATIBILITY_ERROR_KIND_UNSPECIFIED = 0; // Default value, do not use. + SCHEMA_COMPATIBILITY_ERROR_KIND_MISSING_REQUIRED_PROPERTY = 1; // Backward compatibility: Required property from old schema missing in new schema + SCHEMA_COMPATIBILITY_ERROR_KIND_INCOMPATIBLE_TYPE_CHANGE = 2; // Backward compatibility: Property type changed incompatibly + SCHEMA_COMPATIBILITY_ERROR_KIND_OPTIONAL_TO_REQUIRED = 3; // Backward compatibility: Property changed from optional to required + SCHEMA_COMPATIBILITY_ERROR_KIND_NEW_REQUIRED_PROPERTY = 4; // Forward compatibility: New required property added + SCHEMA_COMPATIBILITY_ERROR_KIND_REMOVED_PROPERTY = 5; // Forward compatibility: Property removed from schema + SCHEMA_COMPATIBILITY_ERROR_KIND_ARRAY_TYPE_INCOMPATIBILITY = 6; // Issues with array item types +} + +// Represents the information necessary to check schema compatibility or validate a schema. +message SchemaValidationInfo { + string schema_version_id = 1; + bytes schema_definition = 2; + SchemaDataFormat data_format = 3; + CompatibilityMode compatibility = 4; +} \ No newline at end of file diff --git a/packages/db-client/protos/v2/streams/streams.proto b/packages/db-client/protos/v2/streams/streams.proto new file mode 100644 index 00000000..a7513fcd --- /dev/null +++ b/packages/db-client/protos/v2/streams/streams.proto @@ -0,0 +1,218 @@ +syntax = "proto3"; + +package kurrentdb.protocol.streams.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/struct.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); +// +// // This method is not transactional and opens a channel for streaming append requests. +// // The server will respond with the results of each append operation as they are processed. +// rpc AppendStreamSession(stream AppendStreamRequest) returns (stream AppendStreamResponse); +} + +// 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; + // 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; +// // Optional timestamp indicating when the record was created. +// // If not provided, the server will use the current time. +// optional google.protobuf.Timestamp timestamp = 4; +} + +// 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.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; + } +} + +// AppendStreamOutput 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 simplified reason for access denial. + string reason = 1; + } + + // When the stream has been deleted. + message StreamDeleted { + // The time when the stream was deleted. + google.protobuf.Timestamp deleted_at = 1; + + // If the stream was hard deleted, you cannot reuse the stream name, + // it will raise an exception if you try to append to it again. + bool tombstoned = 2; + } + + // 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 + // (its bigger than the configured chunk size). + message TransactionMaxSizeExceeded { + // The maximum allowed size of the transaction. + uint32 max_size = 1; + } +} + +//=================================================================== +// Shared +//=================================================================== + +// 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; + +// // Represents a json struct +// google.protobuf.Struct struct_value = 12; + + // Represents a list of dynamic values. + //ListDynamicValue list_value = 11; + } +}