UNPKG

@ondewo/csi-client-angular

Version:

ONDEWO Conversation System Integration (CSI) Client library for Angular

1,247 lines 304 kB
import { GrpcMessage, RecursivePartial, ToProtobufJSONOptions } from '@ngx-grpc/common'; import { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf'; import * as googleProtobuf003 from '@ngx-grpc/well-known-types'; import * as googleProtobuf004 from '@ngx-grpc/well-known-types'; import * as ondewoNlu007 from '../../ondewo/nlu/context.pb'; import * as ondewoNlu008 from '../../ondewo/nlu/common.pb'; import * as googleProtobuf010 from '@ngx-grpc/well-known-types'; import * as googleRpc011 from '../../google/rpc/status.pb'; import * as googleType012 from '../../google/type/latlng.pb'; import * as ondewoNlu013 from '../../ondewo/nlu/intent.pb'; import * as ondewoNlu014 from '../../ondewo/nlu/entity-type.pb'; export declare enum TranscriptionType { TRANSCRIPTION_TYPE_UNSPECIFIED = 0, TRANSCRIPTION_TYPE_S2T = 1, TRANSCRIPTION_TYPE_HUMAN = 2 } export declare enum AudioEncoding { AUDIO_ENCODING_UNSPECIFIED = 0, AUDIO_ENCODING_LINEAR_16 = 1, AUDIO_ENCODING_FLAC = 2, AUDIO_ENCODING_MULAW = 3, AUDIO_ENCODING_AMR = 4, AUDIO_ENCODING_AMR_WB = 5, AUDIO_ENCODING_OGG_OPUS = 6, AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7 } export declare enum ComparisonOperator { EQUAL = 0, GREATER = 1, GREATER_OR_EQUAL = 2, LESS_OR_EQUAL = 3, CONTAINS = 4, STARTS_WITH = 5, ENDS_WITH = 6 } export declare enum ResourceView { RESOURCE_VIEW_UNSPECIFIED = 0, RESOURCE_VIEW_FULL = 1, RESOURCE_VIEW_PARTIAL = 2, RESOURCE_VIEW_MINIMUM = 3 } export declare enum AudioFileResourceType { AUDIO_FILE_RESOURCE_TYPE_UNSPECIFIED = 0, AUDIO_FILE_RESOURCE_TYPE_T2S = 1, AUDIO_FILE_RESOURCE_TYPE_S2T = 2, AUDIO_FILE_RESOURCE_TYPE_S2T_AND_T2S = 3 } /** * Message implementation for ondewo.nlu.DetectIntentRequest */ export declare class DetectIntentRequest implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): DetectIntentRequest; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: DetectIntentRequest): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: DetectIntentRequest, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: DetectIntentRequest, _writer: BinaryWriter): void; private _session; private _queryParams?; private _queryInput?; private _inputAudio; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of DetectIntentRequest to deeply clone from */ constructor(_value?: RecursivePartial<DetectIntentRequest.AsObject>); get session(): string; set session(value: string); get queryParams(): QueryParameters | undefined; set queryParams(value: QueryParameters | undefined); get queryInput(): QueryInput | undefined; set queryInput(value: QueryInput | undefined); get inputAudio(): Uint8Array; set inputAudio(value: Uint8Array); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): DetectIntentRequest.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): DetectIntentRequest.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): DetectIntentRequest.AsProtobufJSON; } export declare namespace DetectIntentRequest { /** * Standard JavaScript object representation for DetectIntentRequest */ interface AsObject { session: string; queryParams?: QueryParameters.AsObject; queryInput?: QueryInput.AsObject; inputAudio: Uint8Array; } /** * Protobuf JSON representation for DetectIntentRequest */ interface AsProtobufJSON { session: string; queryParams: QueryParameters.AsProtobufJSON | null; queryInput: QueryInput.AsProtobufJSON | null; inputAudio: string; } } /** * Message implementation for ondewo.nlu.DetectIntentResponse */ export declare class DetectIntentResponse implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): DetectIntentResponse; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: DetectIntentResponse): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: DetectIntentResponse, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: DetectIntentResponse, _writer: BinaryWriter): void; private _responseId; private _queryResult?; private _webhookStatus?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of DetectIntentResponse to deeply clone from */ constructor(_value?: RecursivePartial<DetectIntentResponse.AsObject>); get responseId(): string; set responseId(value: string); get queryResult(): QueryResult | undefined; set queryResult(value: QueryResult | undefined); get webhookStatus(): googleRpc011.Status | undefined; set webhookStatus(value: googleRpc011.Status | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): DetectIntentResponse.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): DetectIntentResponse.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): DetectIntentResponse.AsProtobufJSON; } export declare namespace DetectIntentResponse { /** * Standard JavaScript object representation for DetectIntentResponse */ interface AsObject { responseId: string; queryResult?: QueryResult.AsObject; webhookStatus?: googleRpc011.Status.AsObject; } /** * Protobuf JSON representation for DetectIntentResponse */ interface AsProtobufJSON { responseId: string; queryResult: QueryResult.AsProtobufJSON | null; webhookStatus: googleRpc011.Status.AsProtobufJSON | null; } } /** * Message implementation for ondewo.nlu.QueryParameters */ export declare class QueryParameters implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): QueryParameters; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: QueryParameters): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: QueryParameters, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: QueryParameters, _writer: BinaryWriter): void; private _timeZone; private _geoLocation?; private _contexts?; private _resetContexts; private _payload?; private _labels; private _platforms; private _accountId; private _propertyId; private _datastreamId; private _originId; private _identifiedUserId; private _transcriptions?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of QueryParameters to deeply clone from */ constructor(_value?: RecursivePartial<QueryParameters.AsObject>); get timeZone(): string; set timeZone(value: string); get geoLocation(): googleType012.LatLng | undefined; set geoLocation(value: googleType012.LatLng | undefined); get contexts(): ondewoNlu007.Context[] | undefined; set contexts(value: ondewoNlu007.Context[] | undefined); get resetContexts(): boolean; set resetContexts(value: boolean); get payload(): googleProtobuf010.Struct | undefined; set payload(value: googleProtobuf010.Struct | undefined); get labels(): string[]; set labels(value: string[]); get platforms(): ondewoNlu013.Intent.Message.Platform[]; set platforms(value: ondewoNlu013.Intent.Message.Platform[]); get accountId(): string; set accountId(value: string); get propertyId(): string; set propertyId(value: string); get datastreamId(): string; set datastreamId(value: string); get originId(): string; set originId(value: string); get identifiedUserId(): string; set identifiedUserId(value: string); get transcriptions(): S2tTranscription[] | undefined; set transcriptions(value: S2tTranscription[] | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): QueryParameters.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): QueryParameters.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): QueryParameters.AsProtobufJSON; } export declare namespace QueryParameters { /** * Standard JavaScript object representation for QueryParameters */ interface AsObject { timeZone: string; geoLocation?: googleType012.LatLng.AsObject; contexts?: ondewoNlu007.Context.AsObject[]; resetContexts: boolean; payload?: googleProtobuf010.Struct.AsObject; labels: string[]; platforms: ondewoNlu013.Intent.Message.Platform[]; accountId: string; propertyId: string; datastreamId: string; originId: string; identifiedUserId: string; transcriptions?: S2tTranscription.AsObject[]; } /** * Protobuf JSON representation for QueryParameters */ interface AsProtobufJSON { timeZone: string; geoLocation: googleType012.LatLng.AsProtobufJSON | null; contexts: ondewoNlu007.Context.AsProtobufJSON[] | null; resetContexts: boolean; payload: googleProtobuf010.Struct.AsProtobufJSON | null; labels: string[]; platforms: string[]; accountId: string; propertyId: string; datastreamId: string; originId: string; identifiedUserId: string; transcriptions: S2tTranscription.AsProtobufJSON[] | null; } } /** * Message implementation for ondewo.nlu.S2tTranscription */ export declare class S2tTranscription implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): S2tTranscription; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: S2tTranscription): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: S2tTranscription, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: S2tTranscription, _writer: BinaryWriter): void; private _name; private _text; private _score; private _languageCode; private _audioResourceName; private _pipelineId; private _durationInS; private _transcriptionType; private _createdAt?; private _modifiedAt?; private _createdBy; private _modifiedBy; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of S2tTranscription to deeply clone from */ constructor(_value?: RecursivePartial<S2tTranscription.AsObject>); get name(): string; set name(value: string); get text(): string; set text(value: string); get score(): number; set score(value: number); get languageCode(): string; set languageCode(value: string); get audioResourceName(): string; set audioResourceName(value: string); get pipelineId(): string; set pipelineId(value: string); get durationInS(): number; set durationInS(value: number); get transcriptionType(): TranscriptionType; set transcriptionType(value: TranscriptionType); get createdAt(): googleProtobuf004.Timestamp | undefined; set createdAt(value: googleProtobuf004.Timestamp | undefined); get modifiedAt(): googleProtobuf004.Timestamp | undefined; set modifiedAt(value: googleProtobuf004.Timestamp | undefined); get createdBy(): string; set createdBy(value: string); get modifiedBy(): string; set modifiedBy(value: string); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): S2tTranscription.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): S2tTranscription.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): S2tTranscription.AsProtobufJSON; } export declare namespace S2tTranscription { /** * Standard JavaScript object representation for S2tTranscription */ interface AsObject { name: string; text: string; score: number; languageCode: string; audioResourceName: string; pipelineId: string; durationInS: number; transcriptionType: TranscriptionType; createdAt?: googleProtobuf004.Timestamp.AsObject; modifiedAt?: googleProtobuf004.Timestamp.AsObject; createdBy: string; modifiedBy: string; } /** * Protobuf JSON representation for S2tTranscription */ interface AsProtobufJSON { name: string; text: string; score: number; languageCode: string; audioResourceName: string; pipelineId: string; durationInS: number; transcriptionType: string; createdAt: googleProtobuf004.Timestamp.AsProtobufJSON | null; modifiedAt: googleProtobuf004.Timestamp.AsProtobufJSON | null; createdBy: string; modifiedBy: string; } } /** * Message implementation for ondewo.nlu.QueryInput */ export declare class QueryInput implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): QueryInput; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: QueryInput): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: QueryInput, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: QueryInput, _writer: BinaryWriter): void; private _audioConfig?; private _text?; private _event?; private _fileResources?; private _input; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of QueryInput to deeply clone from */ constructor(_value?: RecursivePartial<QueryInput.AsObject>); get audioConfig(): InputAudioConfig | undefined; set audioConfig(value: InputAudioConfig | undefined); get text(): TextInput | undefined; set text(value: TextInput | undefined); get event(): EventInput | undefined; set event(value: EventInput | undefined); get fileResources(): FileResource[] | undefined; set fileResources(value: FileResource[] | undefined); get input(): QueryInput.InputCase; /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): QueryInput.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): QueryInput.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): QueryInput.AsProtobufJSON; } export declare namespace QueryInput { /** * Standard JavaScript object representation for QueryInput */ interface AsObject { audioConfig?: InputAudioConfig.AsObject; text?: TextInput.AsObject; event?: EventInput.AsObject; fileResources?: FileResource.AsObject[]; } /** * Protobuf JSON representation for QueryInput */ interface AsProtobufJSON { audioConfig: InputAudioConfig.AsProtobufJSON | null; text: TextInput.AsProtobufJSON | null; event: EventInput.AsProtobufJSON | null; fileResources: FileResource.AsProtobufJSON[] | null; } enum InputCase { none = 0, audioConfig = 1, text = 2, event = 3 } } /** * Message implementation for ondewo.nlu.QueryResult */ export declare class QueryResult implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): QueryResult; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: QueryResult): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: QueryResult, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: QueryResult, _writer: BinaryWriter): void; private _queryText; private _speechRecognitionConfidence; private _action; private _parameters?; private _allRequiredParamsPresent; private _fulfillmentText; private _fulfillmentMessages?; private _webhookSource; private _webhookPayload?; private _outputContexts?; private _intent?; private _intentDetectionConfidence; private _queryTextOriginal; private _diagnosticInfo?; private _languageCode; private _fileResources?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of QueryResult to deeply clone from */ constructor(_value?: RecursivePartial<QueryResult.AsObject>); get queryText(): string; set queryText(value: string); get speechRecognitionConfidence(): number; set speechRecognitionConfidence(value: number); get action(): string; set action(value: string); get parameters(): googleProtobuf010.Struct | undefined; set parameters(value: googleProtobuf010.Struct | undefined); get allRequiredParamsPresent(): boolean; set allRequiredParamsPresent(value: boolean); get fulfillmentText(): string; set fulfillmentText(value: string); get fulfillmentMessages(): ondewoNlu013.Intent.Message[] | undefined; set fulfillmentMessages(value: ondewoNlu013.Intent.Message[] | undefined); get webhookSource(): string; set webhookSource(value: string); get webhookPayload(): googleProtobuf010.Struct | undefined; set webhookPayload(value: googleProtobuf010.Struct | undefined); get outputContexts(): ondewoNlu007.Context[] | undefined; set outputContexts(value: ondewoNlu007.Context[] | undefined); get intent(): ondewoNlu013.Intent | undefined; set intent(value: ondewoNlu013.Intent | undefined); get intentDetectionConfidence(): number; set intentDetectionConfidence(value: number); get queryTextOriginal(): string; set queryTextOriginal(value: string); get diagnosticInfo(): googleProtobuf010.Struct | undefined; set diagnosticInfo(value: googleProtobuf010.Struct | undefined); get languageCode(): string; set languageCode(value: string); get fileResources(): FileResource[] | undefined; set fileResources(value: FileResource[] | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): QueryResult.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): QueryResult.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): QueryResult.AsProtobufJSON; } export declare namespace QueryResult { /** * Standard JavaScript object representation for QueryResult */ interface AsObject { queryText: string; speechRecognitionConfidence: number; action: string; parameters?: googleProtobuf010.Struct.AsObject; allRequiredParamsPresent: boolean; fulfillmentText: string; fulfillmentMessages?: ondewoNlu013.Intent.Message.AsObject[]; webhookSource: string; webhookPayload?: googleProtobuf010.Struct.AsObject; outputContexts?: ondewoNlu007.Context.AsObject[]; intent?: ondewoNlu013.Intent.AsObject; intentDetectionConfidence: number; queryTextOriginal: string; diagnosticInfo?: googleProtobuf010.Struct.AsObject; languageCode: string; fileResources?: FileResource.AsObject[]; } /** * Protobuf JSON representation for QueryResult */ interface AsProtobufJSON { queryText: string; speechRecognitionConfidence: number; action: string; parameters: googleProtobuf010.Struct.AsProtobufJSON | null; allRequiredParamsPresent: boolean; fulfillmentText: string; fulfillmentMessages: ondewoNlu013.Intent.Message.AsProtobufJSON[] | null; webhookSource: string; webhookPayload: googleProtobuf010.Struct.AsProtobufJSON | null; outputContexts: ondewoNlu007.Context.AsProtobufJSON[] | null; intent: ondewoNlu013.Intent.AsProtobufJSON | null; intentDetectionConfidence: number; queryTextOriginal: string; diagnosticInfo: googleProtobuf010.Struct.AsProtobufJSON | null; languageCode: string; fileResources: FileResource.AsProtobufJSON[] | null; } } /** * Message implementation for ondewo.nlu.StreamingDetectIntentRequest */ export declare class StreamingDetectIntentRequest implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): StreamingDetectIntentRequest; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: StreamingDetectIntentRequest): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: StreamingDetectIntentRequest, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: StreamingDetectIntentRequest, _writer: BinaryWriter): void; private _session; private _queryParams?; private _queryInput?; private _singleUtterance; private _inputAudio; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of StreamingDetectIntentRequest to deeply clone from */ constructor(_value?: RecursivePartial<StreamingDetectIntentRequest.AsObject>); get session(): string; set session(value: string); get queryParams(): QueryParameters | undefined; set queryParams(value: QueryParameters | undefined); get queryInput(): QueryInput | undefined; set queryInput(value: QueryInput | undefined); get singleUtterance(): boolean; set singleUtterance(value: boolean); get inputAudio(): Uint8Array; set inputAudio(value: Uint8Array); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): StreamingDetectIntentRequest.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): StreamingDetectIntentRequest.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): StreamingDetectIntentRequest.AsProtobufJSON; } export declare namespace StreamingDetectIntentRequest { /** * Standard JavaScript object representation for StreamingDetectIntentRequest */ interface AsObject { session: string; queryParams?: QueryParameters.AsObject; queryInput?: QueryInput.AsObject; singleUtterance: boolean; inputAudio: Uint8Array; } /** * Protobuf JSON representation for StreamingDetectIntentRequest */ interface AsProtobufJSON { session: string; queryParams: QueryParameters.AsProtobufJSON | null; queryInput: QueryInput.AsProtobufJSON | null; singleUtterance: boolean; inputAudio: string; } } /** * Message implementation for ondewo.nlu.StreamingDetectIntentResponse */ export declare class StreamingDetectIntentResponse implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): StreamingDetectIntentResponse; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: StreamingDetectIntentResponse): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: StreamingDetectIntentResponse, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: StreamingDetectIntentResponse, _writer: BinaryWriter): void; private _responseId; private _recognitionResult?; private _queryResult?; private _webhookStatus?; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of StreamingDetectIntentResponse to deeply clone from */ constructor(_value?: RecursivePartial<StreamingDetectIntentResponse.AsObject>); get responseId(): string; set responseId(value: string); get recognitionResult(): StreamingRecognitionResult | undefined; set recognitionResult(value: StreamingRecognitionResult | undefined); get queryResult(): QueryResult | undefined; set queryResult(value: QueryResult | undefined); get webhookStatus(): googleRpc011.Status | undefined; set webhookStatus(value: googleRpc011.Status | undefined); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): StreamingDetectIntentResponse.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): StreamingDetectIntentResponse.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): StreamingDetectIntentResponse.AsProtobufJSON; } export declare namespace StreamingDetectIntentResponse { /** * Standard JavaScript object representation for StreamingDetectIntentResponse */ interface AsObject { responseId: string; recognitionResult?: StreamingRecognitionResult.AsObject; queryResult?: QueryResult.AsObject; webhookStatus?: googleRpc011.Status.AsObject; } /** * Protobuf JSON representation for StreamingDetectIntentResponse */ interface AsProtobufJSON { responseId: string; recognitionResult: StreamingRecognitionResult.AsProtobufJSON | null; queryResult: QueryResult.AsProtobufJSON | null; webhookStatus: googleRpc011.Status.AsProtobufJSON | null; } } /** * Message implementation for ondewo.nlu.StreamingRecognitionResult */ export declare class StreamingRecognitionResult implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): StreamingRecognitionResult; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: StreamingRecognitionResult): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: StreamingRecognitionResult, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: StreamingRecognitionResult, _writer: BinaryWriter): void; private _messageType; private _transcript; private _isFinal; private _confidence; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of StreamingRecognitionResult to deeply clone from */ constructor(_value?: RecursivePartial<StreamingRecognitionResult.AsObject>); get messageType(): StreamingRecognitionResult.MessageType; set messageType(value: StreamingRecognitionResult.MessageType); get transcript(): string; set transcript(value: string); get isFinal(): boolean; set isFinal(value: boolean); get confidence(): number; set confidence(value: number); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): StreamingRecognitionResult.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): StreamingRecognitionResult.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): StreamingRecognitionResult.AsProtobufJSON; } export declare namespace StreamingRecognitionResult { /** * Standard JavaScript object representation for StreamingRecognitionResult */ interface AsObject { messageType: StreamingRecognitionResult.MessageType; transcript: string; isFinal: boolean; confidence: number; } /** * Protobuf JSON representation for StreamingRecognitionResult */ interface AsProtobufJSON { messageType: string; transcript: string; isFinal: boolean; confidence: number; } enum MessageType { MESSAGE_TYPE_UNSPECIFIED = 0, TRANSCRIPT = 1, END_OF_SINGLE_UTTERANCE = 2 } } /** * Message implementation for ondewo.nlu.InputAudioConfig */ export declare class InputAudioConfig implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): InputAudioConfig; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: InputAudioConfig): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: InputAudioConfig, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: InputAudioConfig, _writer: BinaryWriter): void; private _audioEncoding; private _sampleRateHertz; private _languageCode; private _phraseHints; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of InputAudioConfig to deeply clone from */ constructor(_value?: RecursivePartial<InputAudioConfig.AsObject>); get audioEncoding(): AudioEncoding; set audioEncoding(value: AudioEncoding); get sampleRateHertz(): number; set sampleRateHertz(value: number); get languageCode(): string; set languageCode(value: string); get phraseHints(): string[]; set phraseHints(value: string[]); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): InputAudioConfig.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): InputAudioConfig.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): InputAudioConfig.AsProtobufJSON; } export declare namespace InputAudioConfig { /** * Standard JavaScript object representation for InputAudioConfig */ interface AsObject { audioEncoding: AudioEncoding; sampleRateHertz: number; languageCode: string; phraseHints: string[]; } /** * Protobuf JSON representation for InputAudioConfig */ interface AsProtobufJSON { audioEncoding: string; sampleRateHertz: number; languageCode: string; phraseHints: string[]; } } /** * Message implementation for ondewo.nlu.TextInput */ export declare class TextInput implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): TextInput; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: TextInput): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: TextInput, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: TextInput, _writer: BinaryWriter): void; private _text; private _languageCode; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of TextInput to deeply clone from */ constructor(_value?: RecursivePartial<TextInput.AsObject>); get text(): string; set text(value: string); get languageCode(): string; set languageCode(value: string); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): TextInput.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): TextInput.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): TextInput.AsProtobufJSON; } export declare namespace TextInput { /** * Standard JavaScript object representation for TextInput */ interface AsObject { text: string; languageCode: string; } /** * Protobuf JSON representation for TextInput */ interface AsProtobufJSON { text: string; languageCode: string; } } /** * Message implementation for ondewo.nlu.EventInput */ export declare class EventInput implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): EventInput; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: EventInput): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: EventInput, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: EventInput, _writer: BinaryWriter): void; private _name; private _parameters?; private _languageCode; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of EventInput to deeply clone from */ constructor(_value?: RecursivePartial<EventInput.AsObject>); get name(): string; set name(value: string); get parameters(): googleProtobuf010.Struct | undefined; set parameters(value: googleProtobuf010.Struct | undefined); get languageCode(): string; set languageCode(value: string); /** * Serialize message to binary data * @param instance message instance */ serializeBinary(): any; /** * Cast message to standard JavaScript object (all non-primitive values are deeply cloned) */ toObject(): EventInput.AsObject; /** * Convenience method to support JSON.stringify(message), replicates the structure of toObject() */ toJSON(): EventInput.AsObject; /** * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc. * 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 */ toProtobufJSON(options?: ToProtobufJSONOptions): EventInput.AsProtobufJSON; } export declare namespace EventInput { /** * Standard JavaScript object representation for EventInput */ interface AsObject { name: string; parameters?: googleProtobuf010.Struct.AsObject; languageCode: string; } /** * Protobuf JSON representation for EventInput */ interface AsProtobufJSON { name: string; parameters: googleProtobuf010.Struct.AsProtobufJSON | null; languageCode: string; } } /** * Message implementation for ondewo.nlu.Session */ export declare class Session implements GrpcMessage { static id: string; /** * Deserialize binary data to message * @param instance message instance */ static deserializeBinary(bytes: ByteSource): Session; /** * Check all the properties and set default protobuf values if necessary * @param _instance message instance */ static refineValues(_instance: Session): void; /** * Deserializes / reads binary message into message instance using provided binary reader * @param _instance message instance * @param _reader binary reader instance */ static deserializeBinaryFromReader(_instance: Session, _reader: BinaryReader): void; /** * Serializes a message to binary format using provided binary reader * @param _instance message instance * @param _writer binary writer instance */ static serializeBinaryToWriter(_instance: Session, _writer: BinaryWriter): void; private _name; private _sessionSteps?; private _sessionInfo?; private _createdAt?; private _modifiedAt?; private _createdBy; private _modifiedBy; /** * Message constructor. Initializes the properties and applies default Protobuf values if necessary * @param _value initial values object or instance of Session to deeply clone from */ constructor(_value?: RecursivePartial<Session.AsObject>); get name(): string; set name(value: string); get sessionSteps(): SessionStep[] | undefined; set sessionSteps(value: SessionStep[] | undefined); get sessionInfo(): SessionInfo | undefined; set sessionInfo(value: SessionInfo | undefined); get createdAt(): googleProtobuf004.Timestamp | undefined; set createdAt(value: googleProtobuf004.Timestamp | undefined); get modifiedAt(): googleProtobuf004.Timestamp | undefined; se