@ondewo/csi-client-angular
Version:
ONDEWO Conversation System Integration (CSI) Client library for Angular
1 lines • 5.82 MB
Source Map (JSON)
{"version":3,"file":"ondewo-csi-client-angular.mjs","sources":["../../api/google/rpc/status.pb.ts","../../api/ondewo/nlu/context.pb.ts","../../api/ondewo/nlu/common.pb.ts","../../api/google/type/latlng.pb.ts","../../api/ondewo/nlu/intent.pb.ts","../../api/ondewo/nlu/entity-type.pb.ts","../../api/ondewo/nlu/session.pb.ts","../../api/ondewo/t2s/text-to-speech.pb.ts","../../api/ondewo/s2t/speech-to-text.pb.ts","../../api/ondewo/csi/conversation.pb.ts","../../api/ondewo/csi/conversation.pbconf.ts","../../api/ondewo/csi/conversation.pbsc.ts","../../api/ondewo/nlu/project-statistics.pb.ts","../../api/ondewo/nlu/project-statistics.pbconf.ts","../../api/ondewo/nlu/project-statistics.pbsc.ts","../../api/ondewo/nlu/aiservices.pbconf.ts","../../api/ondewo/nlu/entity-type.pbconf.ts","../../api/ondewo/nlu/project-role.pb.ts","../../api/ondewo/nlu/user.pb.ts","../../api/ondewo/nlu/user.pbconf.ts","../../api/ondewo/nlu/user.pbsc.ts","../../api/ondewo/nlu/webhook.pb.ts","../../api/ondewo/nlu/webhook.pbconf.ts","../../api/ondewo/nlu/webhook.pbsc.ts","../../api/ondewo/nlu/operation-metadata.pb.ts","../../api/ondewo/nlu/operations.pb.ts","../../api/ondewo/nlu/entity-type.pbsc.ts","../../api/ondewo/nlu/utility.pb.ts","../../api/ondewo/nlu/utility.pbconf.ts","../../api/ondewo/nlu/utility.pbsc.ts","../../api/ondewo/nlu/agent.pbconf.ts","../../api/ondewo/nlu/session.pbconf.ts","../../api/ondewo/nlu/intent.pbconf.ts","../../api/ondewo/nlu/intent.pbsc.ts","../../api/ondewo/nlu/operations.pbconf.ts","../../api/ondewo/nlu/agent.pb.ts","../../api/ondewo/nlu/server-statistics.pbconf.ts","../../api/ondewo/nlu/ccai-project.pb.ts","../../api/ondewo/nlu/ccai-project.pbconf.ts","../../api/ondewo/nlu/ccai-project.pbsc.ts","../../api/ondewo/nlu/aiservices.pb.ts","../../api/ondewo/nlu/aiservices.pbsc.ts","../../api/ondewo/nlu/session.pbsc.ts","../../api/ondewo/nlu/server-statistics.pb.ts","../../api/ondewo/nlu/operations.pbsc.ts","../../api/ondewo/nlu/agent.pbsc.ts","../../api/ondewo/nlu/context.pbconf.ts","../../api/ondewo/nlu/context.pbsc.ts","../../api/ondewo/nlu/project-role.pbconf.ts","../../api/ondewo/nlu/project-role.pbsc.ts","../../api/ondewo/nlu/server-statistics.pbsc.ts","../../api/ondewo/s2t/speech-to-text.pbconf.ts","../../api/ondewo/s2t/speech-to-text.pbsc.ts","../../api/ondewo/t2s/text-to-speech.pbconf.ts","../../api/ondewo/t2s/text-to-speech.pbsc.ts","../../api/google/api/http.pb.ts","../../ondewo-csi-client-angular.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n//\n// THIS IS A GENERATED FILE\n// DO NOT MODIFY IT! YOUR CHANGES WILL BE LOST\nimport {\n GrpcMessage,\n RecursivePartial,\n ToProtobufJSONOptions\n} from '@ngx-grpc/common';\nimport { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf';\nimport * as googleProtobuf000 from '@ngx-grpc/well-known-types';\n/**\n * Message implementation for google.rpc.Status\n */\nexport class Status implements GrpcMessage {\n static id = 'google.rpc.Status';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new Status();\n Status.deserializeBinaryFromReader(instance, new BinaryReader(bytes));\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: Status) {\n _instance.code = _instance.code || 0;\n _instance.message = _instance.message || '';\n _instance.details = _instance.details || [];\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(_instance: Status, _reader: BinaryReader) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.code = _reader.readInt32();\n break;\n case 2:\n _instance.message = _reader.readString();\n break;\n case 3:\n const messageInitializer3 = new googleProtobuf000.Any();\n _reader.readMessage(\n messageInitializer3,\n googleProtobuf000.Any.deserializeBinaryFromReader\n );\n (_instance.details = _instance.details || []).push(\n messageInitializer3\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n Status.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(_instance: Status, _writer: BinaryWriter) {\n if (_instance.code) {\n _writer.writeInt32(1, _instance.code);\n }\n if (_instance.message) {\n _writer.writeString(2, _instance.message);\n }\n if (_instance.details && _instance.details.length) {\n _writer.writeRepeatedMessage(\n 3,\n _instance.details as any,\n googleProtobuf000.Any.serializeBinaryToWriter\n );\n }\n }\n\n private _code: number;\n private _message: string;\n private _details?: googleProtobuf000.Any[];\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of Status to deeply clone from\n */\n constructor(_value?: RecursivePartial<Status.AsObject>) {\n _value = _value || {};\n this.code = _value.code;\n this.message = _value.message;\n this.details = (_value.details || []).map(\n m => new googleProtobuf000.Any(m)\n );\n Status.refineValues(this);\n }\n get code(): number {\n return this._code;\n }\n set code(value: number) {\n this._code = value;\n }\n get message(): string {\n return this._message;\n }\n set message(value: string) {\n this._message = value;\n }\n get details(): googleProtobuf000.Any[] | undefined {\n return this._details;\n }\n set details(value: googleProtobuf000.Any[] | undefined) {\n this._details = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n Status.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): Status.AsObject {\n return {\n code: this.code,\n message: this.message,\n details: (this.details || []).map(m => m.toObject())\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): Status.AsProtobufJSON {\n return {\n code: this.code,\n message: this.message,\n details: (this.details || []).map(m => m.toProtobufJSON(options))\n };\n }\n}\nexport module Status {\n /**\n * Standard JavaScript object representation for Status\n */\n export interface AsObject {\n code: number;\n message: string;\n details?: googleProtobuf000.Any.AsObject[];\n }\n\n /**\n * Protobuf JSON representation for Status\n */\n export interface AsProtobufJSON {\n code: number;\n message: string;\n details: googleProtobuf000.Any.AsProtobufJSON[] | null;\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n// @ts-nocheck\n//\n// THIS IS A GENERATED FILE\n// DO NOT MODIFY IT! YOUR CHANGES WILL BE LOST\nimport {\n GrpcMessage,\n RecursivePartial,\n ToProtobufJSONOptions\n} from '@ngx-grpc/common';\nimport { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf';\nimport * as googleApi000 from '../../google/api/http.pb';\nimport * as googleProtobuf001 from '@ngx-grpc/well-known-types';\nimport * as googleApi002 from '../../google/api/annotations.pb';\nimport * as googleProtobuf003 from '@ngx-grpc/well-known-types';\nimport * as googleProtobuf004 from '@ngx-grpc/well-known-types';\nimport * as googleProtobuf005 from '@ngx-grpc/well-known-types';\n/**\n * Message implementation for ondewo.nlu.Context\n */\nexport class Context implements GrpcMessage {\n static id = 'ondewo.nlu.Context';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new Context();\n Context.deserializeBinaryFromReader(instance, new BinaryReader(bytes));\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: Context) {\n _instance.name = _instance.name || '';\n _instance.lifespanCount = _instance.lifespanCount || 0;\n _instance.parameters = _instance.parameters || {};\n _instance.lifespanTime = _instance.lifespanTime || 0;\n _instance.createdAt = _instance.createdAt || undefined;\n _instance.modifiedAt = _instance.modifiedAt || undefined;\n _instance.createdBy = _instance.createdBy || '';\n _instance.modifiedBy = _instance.modifiedBy || '';\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: Context,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.name = _reader.readString();\n break;\n case 2:\n _instance.lifespanCount = _reader.readInt32();\n break;\n case 3:\n const msg_3 = {} as any;\n _reader.readMessage(\n msg_3,\n Context.ParametersEntry.deserializeBinaryFromReader\n );\n _instance.parameters = _instance.parameters || {};\n _instance.parameters[msg_3.key] = msg_3.value;\n break;\n case 4:\n _instance.lifespanTime = _reader.readFloat();\n break;\n case 5:\n _instance.createdAt = new googleProtobuf005.Timestamp();\n _reader.readMessage(\n _instance.createdAt,\n googleProtobuf005.Timestamp.deserializeBinaryFromReader\n );\n break;\n case 6:\n _instance.modifiedAt = new googleProtobuf005.Timestamp();\n _reader.readMessage(\n _instance.modifiedAt,\n googleProtobuf005.Timestamp.deserializeBinaryFromReader\n );\n break;\n case 7:\n _instance.createdBy = _reader.readString();\n break;\n case 8:\n _instance.modifiedBy = _reader.readString();\n break;\n default:\n _reader.skipField();\n }\n }\n\n Context.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(_instance: Context, _writer: BinaryWriter) {\n if (_instance.name) {\n _writer.writeString(1, _instance.name);\n }\n if (_instance.lifespanCount) {\n _writer.writeInt32(2, _instance.lifespanCount);\n }\n if (!!_instance.parameters) {\n const keys_3 = Object.keys(_instance.parameters as any);\n\n if (keys_3.length) {\n const repeated_3 = keys_3\n .map(key => ({ key: key, value: (_instance.parameters as any)[key] }))\n .reduce((r, v) => [...r, v], [] as any[]);\n\n _writer.writeRepeatedMessage(\n 3,\n repeated_3,\n Context.ParametersEntry.serializeBinaryToWriter\n );\n }\n }\n if (_instance.lifespanTime) {\n _writer.writeFloat(4, _instance.lifespanTime);\n }\n if (_instance.createdAt) {\n _writer.writeMessage(\n 5,\n _instance.createdAt as any,\n googleProtobuf005.Timestamp.serializeBinaryToWriter\n );\n }\n if (_instance.modifiedAt) {\n _writer.writeMessage(\n 6,\n _instance.modifiedAt as any,\n googleProtobuf005.Timestamp.serializeBinaryToWriter\n );\n }\n if (_instance.createdBy) {\n _writer.writeString(7, _instance.createdBy);\n }\n if (_instance.modifiedBy) {\n _writer.writeString(8, _instance.modifiedBy);\n }\n }\n\n private _name: string;\n private _lifespanCount: number;\n private _parameters: { [prop: string]: Context.Parameter };\n private _lifespanTime: number;\n private _createdAt?: googleProtobuf005.Timestamp;\n private _modifiedAt?: googleProtobuf005.Timestamp;\n private _createdBy: string;\n private _modifiedBy: string;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of Context to deeply clone from\n */\n constructor(_value?: RecursivePartial<Context.AsObject>) {\n _value = _value || {};\n this.name = _value.name;\n this.lifespanCount = _value.lifespanCount;\n (this.parameters = _value!.parameters\n ? Object.keys(_value!.parameters).reduce(\n (r, k) => ({\n ...r,\n [k]: _value!.parameters![k]\n ? new Context.Parameter(_value!.parameters![k])\n : undefined\n }),\n {}\n )\n : {}),\n (this.lifespanTime = _value.lifespanTime);\n this.createdAt = _value.createdAt\n ? new googleProtobuf005.Timestamp(_value.createdAt)\n : undefined;\n this.modifiedAt = _value.modifiedAt\n ? new googleProtobuf005.Timestamp(_value.modifiedAt)\n : undefined;\n this.createdBy = _value.createdBy;\n this.modifiedBy = _value.modifiedBy;\n Context.refineValues(this);\n }\n get name(): string {\n return this._name;\n }\n set name(value: string) {\n this._name = value;\n }\n get lifespanCount(): number {\n return this._lifespanCount;\n }\n set lifespanCount(value: number) {\n this._lifespanCount = value;\n }\n get parameters(): { [prop: string]: Context.Parameter } {\n return this._parameters;\n }\n set parameters(value: { [prop: string]: Context.Parameter }) {\n this._parameters = value;\n }\n get lifespanTime(): number {\n return this._lifespanTime;\n }\n set lifespanTime(value: number) {\n this._lifespanTime = value;\n }\n get createdAt(): googleProtobuf005.Timestamp | undefined {\n return this._createdAt;\n }\n set createdAt(value: googleProtobuf005.Timestamp | undefined) {\n this._createdAt = value;\n }\n get modifiedAt(): googleProtobuf005.Timestamp | undefined {\n return this._modifiedAt;\n }\n set modifiedAt(value: googleProtobuf005.Timestamp | undefined) {\n this._modifiedAt = value;\n }\n get createdBy(): string {\n return this._createdBy;\n }\n set createdBy(value: string) {\n this._createdBy = value;\n }\n get modifiedBy(): string {\n return this._modifiedBy;\n }\n set modifiedBy(value: string) {\n this._modifiedBy = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n Context.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): Context.AsObject {\n return {\n name: this.name,\n lifespanCount: this.lifespanCount,\n parameters: this.parameters\n ? Object.keys(this.parameters).reduce(\n (r, k) => ({\n ...r,\n [k]: this.parameters![k]\n ? this.parameters![k].toObject()\n : undefined\n }),\n {}\n )\n : {},\n lifespanTime: this.lifespanTime,\n createdAt: this.createdAt ? this.createdAt.toObject() : undefined,\n modifiedAt: this.modifiedAt ? this.modifiedAt.toObject() : undefined,\n createdBy: this.createdBy,\n modifiedBy: this.modifiedBy\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): Context.AsProtobufJSON {\n return {\n name: this.name,\n lifespanCount: this.lifespanCount,\n parameters: this.parameters\n ? Object.keys(this.parameters).reduce(\n (r, k) => ({\n ...r,\n [k]: this.parameters![k] ? this.parameters![k].toJSON() : null\n }),\n {}\n )\n : {},\n lifespanTime: this.lifespanTime,\n createdAt: this.createdAt ? this.createdAt.toProtobufJSON(options) : null,\n modifiedAt: this.modifiedAt\n ? this.modifiedAt.toProtobufJSON(options)\n : null,\n createdBy: this.createdBy,\n modifiedBy: this.modifiedBy\n };\n }\n}\nexport module Context {\n /**\n * Standard JavaScript object representation for Context\n */\n export interface AsObject {\n name: string;\n lifespanCount: number;\n parameters: { [prop: string]: Context.Parameter };\n lifespanTime: number;\n createdAt?: googleProtobuf005.Timestamp.AsObject;\n modifiedAt?: googleProtobuf005.Timestamp.AsObject;\n createdBy: string;\n modifiedBy: string;\n }\n\n /**\n * Protobuf JSON representation for Context\n */\n export interface AsProtobufJSON {\n name: string;\n lifespanCount: number;\n parameters: { [prop: string]: Context.Parameter };\n lifespanTime: number;\n createdAt: googleProtobuf005.Timestamp.AsProtobufJSON | null;\n modifiedAt: googleProtobuf005.Timestamp.AsProtobufJSON | null;\n createdBy: string;\n modifiedBy: string;\n }\n\n /**\n * Message implementation for ondewo.nlu.Context.Parameter\n */\n export class Parameter implements GrpcMessage {\n static id = 'ondewo.nlu.Context.Parameter';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new Parameter();\n Parameter.deserializeBinaryFromReader(instance, new BinaryReader(bytes));\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: Parameter) {\n _instance.name = _instance.name || '';\n _instance.displayName = _instance.displayName || '';\n _instance.value = _instance.value || '';\n _instance.valueOriginal = _instance.valueOriginal || '';\n _instance.createdAt = _instance.createdAt || undefined;\n _instance.modifiedAt = _instance.modifiedAt || undefined;\n _instance.createdBy = _instance.createdBy || '';\n _instance.modifiedBy = _instance.modifiedBy || '';\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: Parameter,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.name = _reader.readString();\n break;\n case 2:\n _instance.displayName = _reader.readString();\n break;\n case 3:\n _instance.value = _reader.readString();\n break;\n case 4:\n _instance.valueOriginal = _reader.readString();\n break;\n case 5:\n _instance.createdAt = new googleProtobuf005.Timestamp();\n _reader.readMessage(\n _instance.createdAt,\n googleProtobuf005.Timestamp.deserializeBinaryFromReader\n );\n break;\n case 6:\n _instance.modifiedAt = new googleProtobuf005.Timestamp();\n _reader.readMessage(\n _instance.modifiedAt,\n googleProtobuf005.Timestamp.deserializeBinaryFromReader\n );\n break;\n case 7:\n _instance.createdBy = _reader.readString();\n break;\n case 8:\n _instance.modifiedBy = _reader.readString();\n break;\n default:\n _reader.skipField();\n }\n }\n\n Parameter.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: Parameter,\n _writer: BinaryWriter\n ) {\n if (_instance.name) {\n _writer.writeString(1, _instance.name);\n }\n if (_instance.displayName) {\n _writer.writeString(2, _instance.displayName);\n }\n if (_instance.value) {\n _writer.writeString(3, _instance.value);\n }\n if (_instance.valueOriginal) {\n _writer.writeString(4, _instance.valueOriginal);\n }\n if (_instance.createdAt) {\n _writer.writeMessage(\n 5,\n _instance.createdAt as any,\n googleProtobuf005.Timestamp.serializeBinaryToWriter\n );\n }\n if (_instance.modifiedAt) {\n _writer.writeMessage(\n 6,\n _instance.modifiedAt as any,\n googleProtobuf005.Timestamp.serializeBinaryToWriter\n );\n }\n if (_instance.createdBy) {\n _writer.writeString(7, _instance.createdBy);\n }\n if (_instance.modifiedBy) {\n _writer.writeString(8, _instance.modifiedBy);\n }\n }\n\n private _name: string;\n private _displayName: string;\n private _value: string;\n private _valueOriginal: string;\n private _createdAt?: googleProtobuf005.Timestamp;\n private _modifiedAt?: googleProtobuf005.Timestamp;\n private _createdBy: string;\n private _modifiedBy: string;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of Parameter to deeply clone from\n */\n constructor(_value?: RecursivePartial<Parameter.AsObject>) {\n _value = _value || {};\n this.name = _value.name;\n this.displayName = _value.displayName;\n this.value = _value.value;\n this.valueOriginal = _value.valueOriginal;\n this.createdAt = _value.createdAt\n ? new googleProtobuf005.Timestamp(_value.createdAt)\n : undefined;\n this.modifiedAt = _value.modifiedAt\n ? new googleProtobuf005.Timestamp(_value.modifiedAt)\n : undefined;\n this.createdBy = _value.createdBy;\n this.modifiedBy = _value.modifiedBy;\n Parameter.refineValues(this);\n }\n get name(): string {\n return this._name;\n }\n set name(value: string) {\n this._name = value;\n }\n get displayName(): string {\n return this._displayName;\n }\n set displayName(value: string) {\n this._displayName = value;\n }\n get value(): string {\n return this._value;\n }\n set value(value: string) {\n this._value = value;\n }\n get valueOriginal(): string {\n return this._valueOriginal;\n }\n set valueOriginal(value: string) {\n this._valueOriginal = value;\n }\n get createdAt(): googleProtobuf005.Timestamp | undefined {\n return this._createdAt;\n }\n set createdAt(value: googleProtobuf005.Timestamp | undefined) {\n this._createdAt = value;\n }\n get modifiedAt(): googleProtobuf005.Timestamp | undefined {\n return this._modifiedAt;\n }\n set modifiedAt(value: googleProtobuf005.Timestamp | undefined) {\n this._modifiedAt = value;\n }\n get createdBy(): string {\n return this._createdBy;\n }\n set createdBy(value: string) {\n this._createdBy = value;\n }\n get modifiedBy(): string {\n return this._modifiedBy;\n }\n set modifiedBy(value: string) {\n this._modifiedBy = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n Parameter.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): Parameter.AsObject {\n return {\n name: this.name,\n displayName: this.displayName,\n value: this.value,\n valueOriginal: this.valueOriginal,\n createdAt: this.createdAt ? this.createdAt.toObject() : undefined,\n modifiedAt: this.modifiedAt ? this.modifiedAt.toObject() : undefined,\n createdBy: this.createdBy,\n modifiedBy: this.modifiedBy\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): Parameter.AsProtobufJSON {\n return {\n name: this.name,\n displayName: this.displayName,\n value: this.value,\n valueOriginal: this.valueOriginal,\n createdAt: this.createdAt\n ? this.createdAt.toProtobufJSON(options)\n : null,\n modifiedAt: this.modifiedAt\n ? this.modifiedAt.toProtobufJSON(options)\n : null,\n createdBy: this.createdBy,\n modifiedBy: this.modifiedBy\n };\n }\n }\n export module Parameter {\n /**\n * Standard JavaScript object representation for Parameter\n */\n export interface AsObject {\n name: string;\n displayName: string;\n value: string;\n valueOriginal: string;\n createdAt?: googleProtobuf005.Timestamp.AsObject;\n modifiedAt?: googleProtobuf005.Timestamp.AsObject;\n createdBy: string;\n modifiedBy: string;\n }\n\n /**\n * Protobuf JSON representation for Parameter\n */\n export interface AsProtobufJSON {\n name: string;\n displayName: string;\n value: string;\n valueOriginal: string;\n createdAt: googleProtobuf005.Timestamp.AsProtobufJSON | null;\n modifiedAt: googleProtobuf005.Timestamp.AsProtobufJSON | null;\n createdBy: string;\n modifiedBy: string;\n }\n }\n\n /**\n * Message implementation for ondewo.nlu.Context.ParametersEntry\n */\n export class ParametersEntry implements GrpcMessage {\n static id = 'ondewo.nlu.Context.ParametersEntry';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new ParametersEntry();\n ParametersEntry.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: ParametersEntry) {\n _instance.key = _instance.key || '';\n _instance.value = _instance.value || undefined;\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: ParametersEntry,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.key = _reader.readString();\n break;\n case 2:\n _instance.value = new Context.Parameter();\n _reader.readMessage(\n _instance.value,\n Context.Parameter.deserializeBinaryFromReader\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n ParametersEntry.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: ParametersEntry,\n _writer: BinaryWriter\n ) {\n if (_instance.key) {\n _writer.writeString(1, _instance.key);\n }\n if (_instance.value) {\n _writer.writeMessage(\n 2,\n _instance.value as any,\n Context.Parameter.serializeBinaryToWriter\n );\n }\n }\n\n private _key: string;\n private _value?: Context.Parameter;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of ParametersEntry to deeply clone from\n */\n constructor(_value?: RecursivePartial<ParametersEntry.AsObject>) {\n _value = _value || {};\n this.key = _value.key;\n this.value = _value.value\n ? new Context.Parameter(_value.value)\n : undefined;\n ParametersEntry.refineValues(this);\n }\n get key(): string {\n return this._key;\n }\n set key(value: string) {\n this._key = value;\n }\n get value(): Context.Parameter | undefined {\n return this._value;\n }\n set value(value: Context.Parameter | undefined) {\n this._value = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n ParametersEntry.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): ParametersEntry.AsObject {\n return {\n key: this.key,\n value: this.value ? this.value.toObject() : undefined\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): ParametersEntry.AsProtobufJSON {\n return {\n key: this.key,\n value: this.value ? this.value.toProtobufJSON(options) : null\n };\n }\n }\n export module ParametersEntry {\n /**\n * Standard JavaScript object representation for ParametersEntry\n */\n export interface AsObject {\n key: string;\n value?: Context.Parameter.AsObject;\n }\n\n /**\n * Protobuf JSON representation for ParametersEntry\n */\n export interface AsProtobufJSON {\n key: string;\n value: Context.Parameter.AsProtobufJSON | null;\n }\n }\n}\n\n/**\n * Message implementation for ondewo.nlu.ListContextsRequest\n */\nexport class ListContextsRequest implements GrpcMessage {\n static id = 'ondewo.nlu.ListContextsRequest';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new ListContextsRequest();\n ListContextsRequest.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: ListContextsRequest) {\n _instance.sessionId = _instance.sessionId || '';\n _instance.pageToken = _instance.pageToken || '';\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: ListContextsRequest,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.sessionId = _reader.readString();\n break;\n case 3:\n _instance.pageToken = _reader.readString();\n break;\n default:\n _reader.skipField();\n }\n }\n\n ListContextsRequest.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: ListContextsRequest,\n _writer: BinaryWriter\n ) {\n if (_instance.sessionId) {\n _writer.writeString(1, _instance.sessionId);\n }\n if (_instance.pageToken) {\n _writer.writeString(3, _instance.pageToken);\n }\n }\n\n private _sessionId: string;\n private _pageToken: string;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of ListContextsRequest to deeply clone from\n */\n constructor(_value?: RecursivePartial<ListContextsRequest.AsObject>) {\n _value = _value || {};\n this.sessionId = _value.sessionId;\n this.pageToken = _value.pageToken;\n ListContextsRequest.refineValues(this);\n }\n get sessionId(): string {\n return this._sessionId;\n }\n set sessionId(value: string) {\n this._sessionId = value;\n }\n get pageToken(): string {\n return this._pageToken;\n }\n set pageToken(value: string) {\n this._pageToken = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n ListContextsRequest.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): ListContextsRequest.AsObject {\n return {\n sessionId: this.sessionId,\n pageToken: this.pageToken\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): ListContextsRequest.AsProtobufJSON {\n return {\n sessionId: this.sessionId,\n pageToken: this.pageToken\n };\n }\n}\nexport module ListContextsRequest {\n /**\n * Standard JavaScript object representation for ListContextsRequest\n */\n export interface AsObject {\n sessionId: string;\n pageToken: string;\n }\n\n /**\n * Protobuf JSON representation for ListContextsRequest\n */\n export interface AsProtobufJSON {\n sessionId: string;\n pageToken: string;\n }\n}\n\n/**\n * Message implementation for ondewo.nlu.ListContextsResponse\n */\nexport class ListContextsResponse implements GrpcMessage {\n static id = 'ondewo.nlu.ListContextsResponse';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new ListContextsResponse();\n ListContextsResponse.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: ListContextsResponse) {\n _instance.contexts = _instance.contexts || [];\n _instance.nextPageToken = _instance.nextPageToken || '';\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: ListContextsResponse,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n const messageInitializer1 = new Context();\n _reader.readMessage(\n messageInitializer1,\n Context.deserializeBinaryFromReader\n );\n (_instance.contexts = _instance.contexts || []).push(\n messageInitializer1\n );\n break;\n case 2:\n _instance.nextPageToken = _reader.readString();\n break;\n default:\n _reader.skipField();\n }\n }\n\n ListContextsResponse.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: ListContextsResponse,\n _writer: BinaryWriter\n ) {\n if (_instance.contexts && _instance.contexts.length) {\n _writer.writeRepeatedMessage(\n 1,\n _instance.contexts as any,\n Context.serializeBinaryToWriter\n );\n }\n if (_instance.nextPageToken) {\n _writer.writeString(2, _instance.nextPageToken);\n }\n }\n\n private _contexts?: Context[];\n private _nextPageToken: string;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of ListContextsResponse to deeply clone from\n */\n constructor(_value?: RecursivePartial<ListContextsResponse.AsObject>) {\n _value = _value || {};\n this.contexts = (_value.contexts || []).map(m => new Context(m));\n this.nextPageToken = _value.nextPageToken;\n ListContextsResponse.refineValues(this);\n }\n get contexts(): Context[] | undefined {\n return this._contexts;\n }\n set contexts(value: Context[] | undefined) {\n this._contexts = value;\n }\n get nextPageToken(): string {\n return this._nextPageToken;\n }\n set nextPageToken(value: string) {\n this._nextPageToken = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n ListContextsResponse.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): ListContextsResponse.AsObject {\n return {\n contexts: (this.contexts || []).map(m => m.toObject()),\n nextPageToken: this.nextPageToken\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): ListContextsResponse.AsProtobufJSON {\n return {\n contexts: (this.contexts || []).map(m => m.toProtobufJSON(options)),\n nextPageToken: this.nextPageToken\n };\n }\n}\nexport module ListContextsResponse {\n /**\n * Standard JavaScript object representation for ListContextsResponse\n */\n export interface AsObject {\n contexts?: Context.AsObject[];\n nextPageToken: string;\n }\n\n /**\n * Protobuf JSON representation for ListContextsResponse\n */\n export interface AsProtobufJSON {\n contexts: Context.AsProtobufJSON[] | null;\n nextPageToken: string;\n }\n}\n\n/**\n * Message implementation for ondewo.nlu.GetContextRequest\n */\nexport class GetContextRequest implements GrpcMessage {\n static id = 'ondewo.nlu.GetContextRequest';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new GetContextRequest();\n GetContextRequest.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: GetContextRequest) {\n _instance.name = _instance.name || '';\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: GetContextRequest,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.name = _reader.readString();\n break;\n default:\n _reader.skipField();\n }\n }\n\n GetContextRequest.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: GetContextRequest,\n _writer: BinaryWriter\n ) {\n if (_instance.name) {\n _writer.writeString(1, _instance.name);\n }\n }\n\n private _name: string;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of GetContextRequest to deeply clone from\n */\n constructor(_value?: RecursivePartial<GetContextRequest.AsObject>) {\n _value = _value || {};\n this.name = _value.name;\n GetContextRequest.refineValues(this);\n }\n get name(): string {\n return this._name;\n }\n set name(value: string) {\n this._name = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n GetContextRequest.serializeBinaryToWriter(this, writer);\n return writer.getResultBuffer();\n }\n\n /**\n * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)\n */\n toObject(): GetContextRequest.AsObject {\n return {\n name: this.name\n };\n }\n\n /**\n * Convenience method to support JSON.stringify(message), replicates the structure of toObject()\n */\n toJSON() {\n return this.toObject();\n }\n\n /**\n * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json\n * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.\n * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required\n */\n toProtobufJSON(\n // @ts-ignore\n options?: ToProtobufJSONOptions\n ): GetContextRequest.AsProtobufJSON {\n return {\n name: this.name\n };\n }\n}\nexport module GetContextRequest {\n /**\n * Standard JavaScript object representation for GetContextRequest\n */\n export interface AsObject {\n name: string;\n }\n\n /**\n * Protobuf JSON representation for GetContextRequest\n */\n export interface AsProtobufJSON {\n name: string;\n }\n}\n\n/**\n * Message implementation for ondewo.nlu.CreateContextRequest\n */\nexport class CreateContextRequest implements GrpcMessage {\n static id = 'ondewo.nlu.CreateContextRequest';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new CreateContextRequest();\n CreateContextRequest.deserializeBinaryFromReader(\n instance,\n new BinaryReader(bytes)\n );\n return instance;\n }\n\n /**\n * Check all the properties and set default protobuf values if necessary\n * @param _instance message instance\n */\n static refineValues(_instance: CreateContextRequest) {\n _instance.sessionId = _instance.sessionId || '';\n _instance.context = _instance.context || undefined;\n }\n\n /**\n * Deserializes / reads binary message into message instance using provided binary reader\n * @param _instance message instance\n * @param _reader binary reader instance\n */\n static deserializeBinaryFromReader(\n _instance: CreateContextRequest,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.sessionId = _reader.readString();\n break;\n case 2:\n _instance.context = new Context();\n _reader.readMessage(\n _instance.context,\n Context.deserializeBinaryFromReader\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n CreateContextRequest.refineValues(_instance);\n }\n\n /**\n * Serializes a message to binary format using provided binary reader\n * @param _instance message instance\n * @param _writer binary writer instance\n */\n static serializeBinaryToWriter(\n _instance: CreateContextRequest,\n _writer: BinaryWriter\n ) {\n if (_instance.sessionId) {\n _writer.writeString(1, _instance.sessionId);\n }\n if (_instance.context) {\n _writer.writeMessage(\n 2,\n _instance.context as any,\n Context.serializeBinaryToWriter\n );\n }\n }\n\n private _sessionId: string;\n private _context?: Context;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of CreateContextRequest to deeply clone from\n */\n constructor(_value?: RecursivePartial<CreateContextRequest.AsObject>) {\n _value = _value || {};\n this.sessionId = _value.sessionId;\n this.context = _value.context ? new Context(_value.context) : undefined;\n CreateContextRequest.refineValues(this);\n }\n get sessionId(): string {\n return this._sessionId;\n }\n set session