UNPKG

@ondewo/s2t-client-angular

Version:

ONDEWO Speech 2 Text (S2T) Client library for Angular

1 lines 693 kB
{"version":3,"file":"ondewo-s2t-client-angular.mjs","sources":["../../api/ondewo/s2t/speech-to-text.pbconf.ts","../../api/ondewo/s2t/speech-to-text.pb.ts","../../api/ondewo/s2t/speech-to-text.pbsc.ts","../../ondewo-s2t-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 { InjectionToken } from '@angular/core';\n\n/**\n * Specific GrpcClientSettings for Speech2Text.\n * Use it only if your default settings are not set or the service requires other settings.\n */\nexport const GRPC_SPEECH2_TEXT_CLIENT_SETTINGS = new InjectionToken<any>(\n 'GRPC_SPEECH2_TEXT_CLIENT_SETTINGS'\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 uint8ArrayToBase64\n} from '@ngx-grpc/common';\nimport { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf';\nimport * as googleProtobuf000 from '@ngx-grpc/well-known-types';\nimport * as googleProtobuf001 from '@ngx-grpc/well-known-types';\nexport enum Decoding {\n DEFAULT = 0,\n GREEDY = 1,\n BEAM_SEARCH_WITH_LM = 2,\n BEAM_SEARCH = 3\n}\nexport enum InferenceBackend {\n INFERENCE_BACKEND_UNKNOWN = 0,\n INFERENCE_BACKEND_PYTORCH = 1,\n INFERENCE_BACKEND_FLAX = 2,\n INFERENCE_BACKEND_CLOUD_SERVICE_AMAZON = 3,\n INFERENCE_BACKEND_CLOUD_SERVICE_DEEPGRAM = 4,\n INFERENCE_BACKEND_CLOUD_SERVICE_GOOGLE = 5,\n INFERENCE_BACKEND_CLOUD_SERVICE_MICROSOFT = 6\n}\n/**\n * Message implementation for ondewo.s2t.TranscribeRequestConfig\n */\nexport class TranscribeRequestConfig implements GrpcMessage {\n static id = 'ondewo.s2t.TranscribeRequestConfig';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new TranscribeRequestConfig();\n TranscribeRequestConfig.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: TranscribeRequestConfig) {\n _instance.s2tPipelineId = _instance.s2tPipelineId || '';\n _instance.decoding = _instance.decoding || 0;\n\n _instance.language = _instance.language || '';\n _instance.task = _instance.task || '';\n _instance.s2tServiceConfig = _instance.s2tServiceConfig || undefined;\n _instance.s2tCloudProviderConfig =\n _instance.s2tCloudProviderConfig || 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: TranscribeRequestConfig,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.s2tPipelineId = _reader.readString();\n break;\n case 2:\n _instance.decoding = _reader.readEnum();\n break;\n case 3:\n _instance.languageModelName = _reader.readString();\n break;\n case 4:\n _instance.postProcessing = new PostProcessingOptions();\n _reader.readMessage(\n _instance.postProcessing,\n PostProcessingOptions.deserializeBinaryFromReader\n );\n break;\n case 5:\n _instance.utteranceDetection = new UtteranceDetectionOptions();\n _reader.readMessage(\n _instance.utteranceDetection,\n UtteranceDetectionOptions.deserializeBinaryFromReader\n );\n break;\n case 6:\n _instance.pyannote = new Pyannote();\n _reader.readMessage(\n _instance.pyannote,\n Pyannote.deserializeBinaryFromReader\n );\n break;\n case 8:\n _instance.returnOptions = new TranscriptionReturnOptions();\n _reader.readMessage(\n _instance.returnOptions,\n TranscriptionReturnOptions.deserializeBinaryFromReader\n );\n break;\n case 9:\n _instance.language = _reader.readString();\n break;\n case 10:\n _instance.task = _reader.readString();\n break;\n case 11:\n _instance.s2tServiceConfig = new googleProtobuf001.Struct();\n _reader.readMessage(\n _instance.s2tServiceConfig,\n googleProtobuf001.Struct.deserializeBinaryFromReader\n );\n break;\n case 12:\n _instance.s2tCloudProviderConfig = new S2tCloudProviderConfig();\n _reader.readMessage(\n _instance.s2tCloudProviderConfig,\n S2tCloudProviderConfig.deserializeBinaryFromReader\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n TranscribeRequestConfig.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: TranscribeRequestConfig,\n _writer: BinaryWriter\n ) {\n if (_instance.s2tPipelineId) {\n _writer.writeString(1, _instance.s2tPipelineId);\n }\n if (_instance.decoding) {\n _writer.writeEnum(2, _instance.decoding);\n }\n if (_instance.languageModelName || _instance.languageModelName === '') {\n _writer.writeString(3, _instance.languageModelName);\n }\n if (_instance.postProcessing) {\n _writer.writeMessage(\n 4,\n _instance.postProcessing as any,\n PostProcessingOptions.serializeBinaryToWriter\n );\n }\n if (_instance.utteranceDetection) {\n _writer.writeMessage(\n 5,\n _instance.utteranceDetection as any,\n UtteranceDetectionOptions.serializeBinaryToWriter\n );\n }\n if (_instance.pyannote) {\n _writer.writeMessage(\n 6,\n _instance.pyannote as any,\n Pyannote.serializeBinaryToWriter\n );\n }\n if (_instance.returnOptions) {\n _writer.writeMessage(\n 8,\n _instance.returnOptions as any,\n TranscriptionReturnOptions.serializeBinaryToWriter\n );\n }\n if (_instance.language) {\n _writer.writeString(9, _instance.language);\n }\n if (_instance.task) {\n _writer.writeString(10, _instance.task);\n }\n if (_instance.s2tServiceConfig) {\n _writer.writeMessage(\n 11,\n _instance.s2tServiceConfig as any,\n googleProtobuf001.Struct.serializeBinaryToWriter\n );\n }\n if (_instance.s2tCloudProviderConfig) {\n _writer.writeMessage(\n 12,\n _instance.s2tCloudProviderConfig as any,\n S2tCloudProviderConfig.serializeBinaryToWriter\n );\n }\n }\n\n private _s2tPipelineId: string;\n private _decoding: Decoding;\n private _languageModelName: string;\n private _postProcessing?: PostProcessingOptions;\n private _utteranceDetection?: UtteranceDetectionOptions;\n private _pyannote?: Pyannote;\n private _returnOptions?: TranscriptionReturnOptions;\n private _language: string;\n private _task: string;\n private _s2tServiceConfig?: googleProtobuf001.Struct;\n private _s2tCloudProviderConfig?: S2tCloudProviderConfig;\n\n private _oneofLanguageModelName: TranscribeRequestConfig.OneofLanguageModelNameCase =\n TranscribeRequestConfig.OneofLanguageModelNameCase.none;\n private _oneofPostProcessing: TranscribeRequestConfig.OneofPostProcessingCase =\n TranscribeRequestConfig.OneofPostProcessingCase.none;\n private _oneofUtteranceDetection: TranscribeRequestConfig.OneofUtteranceDetectionCase =\n TranscribeRequestConfig.OneofUtteranceDetectionCase.none;\n private _voiceActivityDetection: TranscribeRequestConfig.VoiceActivityDetectionCase =\n TranscribeRequestConfig.VoiceActivityDetectionCase.none;\n private _oneofReturnOptions: TranscribeRequestConfig.OneofReturnOptionsCase =\n TranscribeRequestConfig.OneofReturnOptionsCase.none;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of TranscribeRequestConfig to deeply clone from\n */\n constructor(_value?: RecursivePartial<TranscribeRequestConfig.AsObject>) {\n _value = _value || {};\n this.s2tPipelineId = _value.s2tPipelineId;\n this.decoding = _value.decoding;\n this.languageModelName = _value.languageModelName;\n this.postProcessing = _value.postProcessing\n ? new PostProcessingOptions(_value.postProcessing)\n : undefined;\n this.utteranceDetection = _value.utteranceDetection\n ? new UtteranceDetectionOptions(_value.utteranceDetection)\n : undefined;\n this.pyannote = _value.pyannote ? new Pyannote(_value.pyannote) : undefined;\n this.returnOptions = _value.returnOptions\n ? new TranscriptionReturnOptions(_value.returnOptions)\n : undefined;\n this.language = _value.language;\n this.task = _value.task;\n this.s2tServiceConfig = _value.s2tServiceConfig\n ? new googleProtobuf001.Struct(_value.s2tServiceConfig)\n : undefined;\n this.s2tCloudProviderConfig = _value.s2tCloudProviderConfig\n ? new S2tCloudProviderConfig(_value.s2tCloudProviderConfig)\n : undefined;\n TranscribeRequestConfig.refineValues(this);\n }\n get s2tPipelineId(): string {\n return this._s2tPipelineId;\n }\n set s2tPipelineId(value: string) {\n this._s2tPipelineId = value;\n }\n get decoding(): Decoding {\n return this._decoding;\n }\n set decoding(value: Decoding) {\n this._decoding = value;\n }\n get languageModelName(): string {\n return this._languageModelName;\n }\n set languageModelName(value: string) {\n if (value !== undefined && value !== null) {\n this._oneofLanguageModelName =\n TranscribeRequestConfig.OneofLanguageModelNameCase.languageModelName;\n }\n this._languageModelName = value;\n }\n get postProcessing(): PostProcessingOptions | undefined {\n return this._postProcessing;\n }\n set postProcessing(value: PostProcessingOptions | undefined) {\n if (value !== undefined && value !== null) {\n this._oneofPostProcessing =\n TranscribeRequestConfig.OneofPostProcessingCase.postProcessing;\n }\n this._postProcessing = value;\n }\n get utteranceDetection(): UtteranceDetectionOptions | undefined {\n return this._utteranceDetection;\n }\n set utteranceDetection(value: UtteranceDetectionOptions | undefined) {\n if (value !== undefined && value !== null) {\n this._oneofUtteranceDetection =\n TranscribeRequestConfig.OneofUtteranceDetectionCase.utteranceDetection;\n }\n this._utteranceDetection = value;\n }\n get pyannote(): Pyannote | undefined {\n return this._pyannote;\n }\n set pyannote(value: Pyannote | undefined) {\n if (value !== undefined && value !== null) {\n this._voiceActivityDetection =\n TranscribeRequestConfig.VoiceActivityDetectionCase.pyannote;\n }\n this._pyannote = value;\n }\n get returnOptions(): TranscriptionReturnOptions | undefined {\n return this._returnOptions;\n }\n set returnOptions(value: TranscriptionReturnOptions | undefined) {\n if (value !== undefined && value !== null) {\n this._oneofReturnOptions =\n TranscribeRequestConfig.OneofReturnOptionsCase.returnOptions;\n }\n this._returnOptions = value;\n }\n get language(): string {\n return this._language;\n }\n set language(value: string) {\n this._language = value;\n }\n get task(): string {\n return this._task;\n }\n set task(value: string) {\n this._task = value;\n }\n get s2tServiceConfig(): googleProtobuf001.Struct | undefined {\n return this._s2tServiceConfig;\n }\n set s2tServiceConfig(value: googleProtobuf001.Struct | undefined) {\n this._s2tServiceConfig = value;\n }\n get s2tCloudProviderConfig(): S2tCloudProviderConfig | undefined {\n return this._s2tCloudProviderConfig;\n }\n set s2tCloudProviderConfig(value: S2tCloudProviderConfig | undefined) {\n this._s2tCloudProviderConfig = value;\n }\n get oneofLanguageModelName() {\n return this._oneofLanguageModelName;\n }\n get oneofPostProcessing() {\n return this._oneofPostProcessing;\n }\n get oneofUtteranceDetection() {\n return this._oneofUtteranceDetection;\n }\n get voiceActivityDetection() {\n return this._voiceActivityDetection;\n }\n get oneofReturnOptions() {\n return this._oneofReturnOptions;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n TranscribeRequestConfig.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(): TranscribeRequestConfig.AsObject {\n return {\n s2tPipelineId: this.s2tPipelineId,\n decoding: this.decoding,\n languageModelName: this.languageModelName,\n postProcessing: this.postProcessing\n ? this.postProcessing.toObject()\n : undefined,\n utteranceDetection: this.utteranceDetection\n ? this.utteranceDetection.toObject()\n : undefined,\n pyannote: this.pyannote ? this.pyannote.toObject() : undefined,\n returnOptions: this.returnOptions\n ? this.returnOptions.toObject()\n : undefined,\n language: this.language,\n task: this.task,\n s2tServiceConfig: this.s2tServiceConfig\n ? this.s2tServiceConfig.toObject()\n : undefined,\n s2tCloudProviderConfig: this.s2tCloudProviderConfig\n ? this.s2tCloudProviderConfig.toObject()\n : 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 ): TranscribeRequestConfig.AsProtobufJSON {\n return {\n s2tPipelineId: this.s2tPipelineId,\n decoding:\n Decoding[\n this.decoding === null || this.decoding === undefined\n ? 0\n : this.decoding\n ],\n languageModelName:\n this.languageModelName === null || this.languageModelName === undefined\n ? null\n : this.languageModelName,\n postProcessing: this.postProcessing\n ? this.postProcessing.toProtobufJSON(options)\n : null,\n utteranceDetection: this.utteranceDetection\n ? this.utteranceDetection.toProtobufJSON(options)\n : null,\n pyannote: this.pyannote ? this.pyannote.toProtobufJSON(options) : null,\n returnOptions: this.returnOptions\n ? this.returnOptions.toProtobufJSON(options)\n : null,\n language: this.language,\n task: this.task,\n s2tServiceConfig: this.s2tServiceConfig\n ? this.s2tServiceConfig.toProtobufJSON(options)\n : null,\n s2tCloudProviderConfig: this.s2tCloudProviderConfig\n ? this.s2tCloudProviderConfig.toProtobufJSON(options)\n : null\n };\n }\n}\nexport module TranscribeRequestConfig {\n /**\n * Standard JavaScript object representation for TranscribeRequestConfig\n */\n export interface AsObject {\n s2tPipelineId: string;\n decoding: Decoding;\n languageModelName: string;\n postProcessing?: PostProcessingOptions.AsObject;\n utteranceDetection?: UtteranceDetectionOptions.AsObject;\n pyannote?: Pyannote.AsObject;\n returnOptions?: TranscriptionReturnOptions.AsObject;\n language: string;\n task: string;\n s2tServiceConfig?: googleProtobuf001.Struct.AsObject;\n s2tCloudProviderConfig?: S2tCloudProviderConfig.AsObject;\n }\n\n /**\n * Protobuf JSON representation for TranscribeRequestConfig\n */\n export interface AsProtobufJSON {\n s2tPipelineId: string;\n decoding: string;\n languageModelName: string | null;\n postProcessing: PostProcessingOptions.AsProtobufJSON | null;\n utteranceDetection: UtteranceDetectionOptions.AsProtobufJSON | null;\n pyannote: Pyannote.AsProtobufJSON | null;\n returnOptions: TranscriptionReturnOptions.AsProtobufJSON | null;\n language: string;\n task: string;\n s2tServiceConfig: googleProtobuf001.Struct.AsProtobufJSON | null;\n s2tCloudProviderConfig: S2tCloudProviderConfig.AsProtobufJSON | null;\n }\n export enum OneofLanguageModelNameCase {\n none = 0,\n languageModelName = 1\n }\n export enum OneofPostProcessingCase {\n none = 0,\n postProcessing = 1\n }\n export enum OneofUtteranceDetectionCase {\n none = 0,\n utteranceDetection = 1\n }\n export enum VoiceActivityDetectionCase {\n none = 0,\n pyannote = 1\n }\n export enum OneofReturnOptionsCase {\n none = 0,\n returnOptions = 1\n }\n}\n\n/**\n * Message implementation for ondewo.s2t.S2tCloudProviderConfig\n */\nexport class S2tCloudProviderConfig implements GrpcMessage {\n static id = 'ondewo.s2t.S2tCloudProviderConfig';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new S2tCloudProviderConfig();\n S2tCloudProviderConfig.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: S2tCloudProviderConfig) {\n _instance.s2tCloudProviderConfigAmazon =\n _instance.s2tCloudProviderConfigAmazon || undefined;\n _instance.s2tCloudProviderConfigDeepgram =\n _instance.s2tCloudProviderConfigDeepgram || undefined;\n _instance.s2tCloudProviderConfigGoogle =\n _instance.s2tCloudProviderConfigGoogle || undefined;\n _instance.s2tCloudProviderConfigMicrosoft =\n _instance.s2tCloudProviderConfigMicrosoft || 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: S2tCloudProviderConfig,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.s2tCloudProviderConfigAmazon = new S2tCloudProviderConfigAmazon();\n _reader.readMessage(\n _instance.s2tCloudProviderConfigAmazon,\n S2tCloudProviderConfigAmazon.deserializeBinaryFromReader\n );\n break;\n case 2:\n _instance.s2tCloudProviderConfigDeepgram = new S2tCloudProviderConfigDeepgram();\n _reader.readMessage(\n _instance.s2tCloudProviderConfigDeepgram,\n S2tCloudProviderConfigDeepgram.deserializeBinaryFromReader\n );\n break;\n case 3:\n _instance.s2tCloudProviderConfigGoogle = new S2tCloudProviderConfigGoogle();\n _reader.readMessage(\n _instance.s2tCloudProviderConfigGoogle,\n S2tCloudProviderConfigGoogle.deserializeBinaryFromReader\n );\n break;\n case 4:\n _instance.s2tCloudProviderConfigMicrosoft = new S2tCloudProviderConfigMicrosoft();\n _reader.readMessage(\n _instance.s2tCloudProviderConfigMicrosoft,\n S2tCloudProviderConfigMicrosoft.deserializeBinaryFromReader\n );\n break;\n default:\n _reader.skipField();\n }\n }\n\n S2tCloudProviderConfig.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: S2tCloudProviderConfig,\n _writer: BinaryWriter\n ) {\n if (_instance.s2tCloudProviderConfigAmazon) {\n _writer.writeMessage(\n 1,\n _instance.s2tCloudProviderConfigAmazon as any,\n S2tCloudProviderConfigAmazon.serializeBinaryToWriter\n );\n }\n if (_instance.s2tCloudProviderConfigDeepgram) {\n _writer.writeMessage(\n 2,\n _instance.s2tCloudProviderConfigDeepgram as any,\n S2tCloudProviderConfigDeepgram.serializeBinaryToWriter\n );\n }\n if (_instance.s2tCloudProviderConfigGoogle) {\n _writer.writeMessage(\n 3,\n _instance.s2tCloudProviderConfigGoogle as any,\n S2tCloudProviderConfigGoogle.serializeBinaryToWriter\n );\n }\n if (_instance.s2tCloudProviderConfigMicrosoft) {\n _writer.writeMessage(\n 4,\n _instance.s2tCloudProviderConfigMicrosoft as any,\n S2tCloudProviderConfigMicrosoft.serializeBinaryToWriter\n );\n }\n }\n\n private _s2tCloudProviderConfigAmazon?: S2tCloudProviderConfigAmazon;\n private _s2tCloudProviderConfigDeepgram?: S2tCloudProviderConfigDeepgram;\n private _s2tCloudProviderConfigGoogle?: S2tCloudProviderConfigGoogle;\n private _s2tCloudProviderConfigMicrosoft?: S2tCloudProviderConfigMicrosoft;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of S2tCloudProviderConfig to deeply clone from\n */\n constructor(_value?: RecursivePartial<S2tCloudProviderConfig.AsObject>) {\n _value = _value || {};\n this.s2tCloudProviderConfigAmazon = _value.s2tCloudProviderConfigAmazon\n ? new S2tCloudProviderConfigAmazon(_value.s2tCloudProviderConfigAmazon)\n : undefined;\n this.s2tCloudProviderConfigDeepgram = _value.s2tCloudProviderConfigDeepgram\n ? new S2tCloudProviderConfigDeepgram(\n _value.s2tCloudProviderConfigDeepgram\n )\n : undefined;\n this.s2tCloudProviderConfigGoogle = _value.s2tCloudProviderConfigGoogle\n ? new S2tCloudProviderConfigGoogle(_value.s2tCloudProviderConfigGoogle)\n : undefined;\n this.s2tCloudProviderConfigMicrosoft = _value.s2tCloudProviderConfigMicrosoft\n ? new S2tCloudProviderConfigMicrosoft(\n _value.s2tCloudProviderConfigMicrosoft\n )\n : undefined;\n S2tCloudProviderConfig.refineValues(this);\n }\n get s2tCloudProviderConfigAmazon(): S2tCloudProviderConfigAmazon | undefined {\n return this._s2tCloudProviderConfigAmazon;\n }\n set s2tCloudProviderConfigAmazon(\n value: S2tCloudProviderConfigAmazon | undefined\n ) {\n this._s2tCloudProviderConfigAmazon = value;\n }\n get s2tCloudProviderConfigDeepgram():\n | S2tCloudProviderConfigDeepgram\n | undefined {\n return this._s2tCloudProviderConfigDeepgram;\n }\n set s2tCloudProviderConfigDeepgram(\n value: S2tCloudProviderConfigDeepgram | undefined\n ) {\n this._s2tCloudProviderConfigDeepgram = value;\n }\n get s2tCloudProviderConfigGoogle(): S2tCloudProviderConfigGoogle | undefined {\n return this._s2tCloudProviderConfigGoogle;\n }\n set s2tCloudProviderConfigGoogle(\n value: S2tCloudProviderConfigGoogle | undefined\n ) {\n this._s2tCloudProviderConfigGoogle = value;\n }\n get s2tCloudProviderConfigMicrosoft():\n | S2tCloudProviderConfigMicrosoft\n | undefined {\n return this._s2tCloudProviderConfigMicrosoft;\n }\n set s2tCloudProviderConfigMicrosoft(\n value: S2tCloudProviderConfigMicrosoft | undefined\n ) {\n this._s2tCloudProviderConfigMicrosoft = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n S2tCloudProviderConfig.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(): S2tCloudProviderConfig.AsObject {\n return {\n s2tCloudProviderConfigAmazon: this.s2tCloudProviderConfigAmazon\n ? this.s2tCloudProviderConfigAmazon.toObject()\n : undefined,\n s2tCloudProviderConfigDeepgram: this.s2tCloudProviderConfigDeepgram\n ? this.s2tCloudProviderConfigDeepgram.toObject()\n : undefined,\n s2tCloudProviderConfigGoogle: this.s2tCloudProviderConfigGoogle\n ? this.s2tCloudProviderConfigGoogle.toObject()\n : undefined,\n s2tCloudProviderConfigMicrosoft: this.s2tCloudProviderConfigMicrosoft\n ? this.s2tCloudProviderConfigMicrosoft.toObject()\n : 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 ): S2tCloudProviderConfig.AsProtobufJSON {\n return {\n s2tCloudProviderConfigAmazon: this.s2tCloudProviderConfigAmazon\n ? this.s2tCloudProviderConfigAmazon.toProtobufJSON(options)\n : null,\n s2tCloudProviderConfigDeepgram: this.s2tCloudProviderConfigDeepgram\n ? this.s2tCloudProviderConfigDeepgram.toProtobufJSON(options)\n : null,\n s2tCloudProviderConfigGoogle: this.s2tCloudProviderConfigGoogle\n ? this.s2tCloudProviderConfigGoogle.toProtobufJSON(options)\n : null,\n s2tCloudProviderConfigMicrosoft: this.s2tCloudProviderConfigMicrosoft\n ? this.s2tCloudProviderConfigMicrosoft.toProtobufJSON(options)\n : null\n };\n }\n}\nexport module S2tCloudProviderConfig {\n /**\n * Standard JavaScript object representation for S2tCloudProviderConfig\n */\n export interface AsObject {\n s2tCloudProviderConfigAmazon?: S2tCloudProviderConfigAmazon.AsObject;\n s2tCloudProviderConfigDeepgram?: S2tCloudProviderConfigDeepgram.AsObject;\n s2tCloudProviderConfigGoogle?: S2tCloudProviderConfigGoogle.AsObject;\n s2tCloudProviderConfigMicrosoft?: S2tCloudProviderConfigMicrosoft.AsObject;\n }\n\n /**\n * Protobuf JSON representation for S2tCloudProviderConfig\n */\n export interface AsProtobufJSON {\n s2tCloudProviderConfigAmazon: S2tCloudProviderConfigAmazon.AsProtobufJSON | null;\n s2tCloudProviderConfigDeepgram: S2tCloudProviderConfigDeepgram.AsProtobufJSON | null;\n s2tCloudProviderConfigGoogle: S2tCloudProviderConfigGoogle.AsProtobufJSON | null;\n s2tCloudProviderConfigMicrosoft: S2tCloudProviderConfigMicrosoft.AsProtobufJSON | null;\n }\n}\n\n/**\n * Message implementation for ondewo.s2t.S2tCloudProviderConfigAmazon\n */\nexport class S2tCloudProviderConfigAmazon implements GrpcMessage {\n static id = 'ondewo.s2t.S2tCloudProviderConfigAmazon';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new S2tCloudProviderConfigAmazon();\n S2tCloudProviderConfigAmazon.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: S2tCloudProviderConfigAmazon) {\n _instance.enablePartialResultsStabilization =\n _instance.enablePartialResultsStabilization || false;\n _instance.partialResultsStability = _instance.partialResultsStability || '';\n _instance.languageModelName = _instance.languageModelName || '';\n _instance.vocabularyName = _instance.vocabularyName || '';\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: S2tCloudProviderConfigAmazon,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.enablePartialResultsStabilization = _reader.readBool();\n break;\n case 2:\n _instance.partialResultsStability = _reader.readString();\n break;\n case 3:\n _instance.languageModelName = _reader.readString();\n break;\n case 4:\n _instance.vocabularyName = _reader.readString();\n break;\n default:\n _reader.skipField();\n }\n }\n\n S2tCloudProviderConfigAmazon.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: S2tCloudProviderConfigAmazon,\n _writer: BinaryWriter\n ) {\n if (_instance.enablePartialResultsStabilization) {\n _writer.writeBool(1, _instance.enablePartialResultsStabilization);\n }\n if (_instance.partialResultsStability) {\n _writer.writeString(2, _instance.partialResultsStability);\n }\n if (_instance.languageModelName) {\n _writer.writeString(3, _instance.languageModelName);\n }\n if (_instance.vocabularyName) {\n _writer.writeString(4, _instance.vocabularyName);\n }\n }\n\n private _enablePartialResultsStabilization: boolean;\n private _partialResultsStability: string;\n private _languageModelName: string;\n private _vocabularyName: 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 S2tCloudProviderConfigAmazon to deeply clone from\n */\n constructor(\n _value?: RecursivePartial<S2tCloudProviderConfigAmazon.AsObject>\n ) {\n _value = _value || {};\n this.enablePartialResultsStabilization =\n _value.enablePartialResultsStabilization;\n this.partialResultsStability = _value.partialResultsStability;\n this.languageModelName = _value.languageModelName;\n this.vocabularyName = _value.vocabularyName;\n S2tCloudProviderConfigAmazon.refineValues(this);\n }\n get enablePartialResultsStabilization(): boolean {\n return this._enablePartialResultsStabilization;\n }\n set enablePartialResultsStabilization(value: boolean) {\n this._enablePartialResultsStabilization = value;\n }\n get partialResultsStability(): string {\n return this._partialResultsStability;\n }\n set partialResultsStability(value: string) {\n this._partialResultsStability = value;\n }\n get languageModelName(): string {\n return this._languageModelName;\n }\n set languageModelName(value: string) {\n this._languageModelName = value;\n }\n get vocabularyName(): string {\n return this._vocabularyName;\n }\n set vocabularyName(value: string) {\n this._vocabularyName = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n S2tCloudProviderConfigAmazon.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(): S2tCloudProviderConfigAmazon.AsObject {\n return {\n enablePartialResultsStabilization: this.enablePartialResultsStabilization,\n partialResultsStability: this.partialResultsStability,\n languageModelName: this.languageModelName,\n vocabularyName: this.vocabularyName\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 ): S2tCloudProviderConfigAmazon.AsProtobufJSON {\n return {\n enablePartialResultsStabilization: this.enablePartialResultsStabilization,\n partialResultsStability: this.partialResultsStability,\n languageModelName: this.languageModelName,\n vocabularyName: this.vocabularyName\n };\n }\n}\nexport module S2tCloudProviderConfigAmazon {\n /**\n * Standard JavaScript object representation for S2tCloudProviderConfigAmazon\n */\n export interface AsObject {\n enablePartialResultsStabilization: boolean;\n partialResultsStability: string;\n languageModelName: string;\n vocabularyName: string;\n }\n\n /**\n * Protobuf JSON representation for S2tCloudProviderConfigAmazon\n */\n export interface AsProtobufJSON {\n enablePartialResultsStabilization: boolean;\n partialResultsStability: string;\n languageModelName: string;\n vocabularyName: string;\n }\n}\n\n/**\n * Message implementation for ondewo.s2t.S2tCloudProviderConfigDeepgram\n */\nexport class S2tCloudProviderConfigDeepgram implements GrpcMessage {\n static id = 'ondewo.s2t.S2tCloudProviderConfigDeepgram';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new S2tCloudProviderConfigDeepgram();\n S2tCloudProviderConfigDeepgram.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: S2tCloudProviderConfigDeepgram) {\n _instance.punctuate = _instance.punctuate || false;\n _instance.smartFormat = _instance.smartFormat || false;\n _instance.numerals = _instance.numerals || false;\n _instance.measurements = _instance.measurements || false;\n _instance.dictation = _instance.dictation || false;\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: S2tCloudProviderConfigDeepgram,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.punctuate = _reader.readBool();\n break;\n case 2:\n _instance.smartFormat = _reader.readBool();\n break;\n case 3:\n _instance.numerals = _reader.readBool();\n break;\n case 4:\n _instance.measurements = _reader.readBool();\n break;\n case 5:\n _instance.dictation = _reader.readBool();\n break;\n default:\n _reader.skipField();\n }\n }\n\n S2tCloudProviderConfigDeepgram.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: S2tCloudProviderConfigDeepgram,\n _writer: BinaryWriter\n ) {\n if (_instance.punctuate) {\n _writer.writeBool(1, _instance.punctuate);\n }\n if (_instance.smartFormat) {\n _writer.writeBool(2, _instance.smartFormat);\n }\n if (_instance.numerals) {\n _writer.writeBool(3, _instance.numerals);\n }\n if (_instance.measurements) {\n _writer.writeBool(4, _instance.measurements);\n }\n if (_instance.dictation) {\n _writer.writeBool(5, _instance.dictation);\n }\n }\n\n private _punctuate: boolean;\n private _smartFormat: boolean;\n private _numerals: boolean;\n private _measurements: boolean;\n private _dictation: boolean;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of S2tCloudProviderConfigDeepgram to deeply clone from\n */\n constructor(\n _value?: RecursivePartial<S2tCloudProviderConfigDeepgram.AsObject>\n ) {\n _value = _value || {};\n this.punctuate = _value.punctuate;\n this.smartFormat = _value.smartFormat;\n this.numerals = _value.numerals;\n this.measurements = _value.measurements;\n this.dictation = _value.dictation;\n S2tCloudProviderConfigDeepgram.refineValues(this);\n }\n get punctuate(): boolean {\n return this._punctuate;\n }\n set punctuate(value: boolean) {\n this._punctuate = value;\n }\n get smartFormat(): boolean {\n return this._smartFormat;\n }\n set smartFormat(value: boolean) {\n this._smartFormat = value;\n }\n get numerals(): boolean {\n return this._numerals;\n }\n set numerals(value: boolean) {\n this._numerals = value;\n }\n get measurements(): boolean {\n return this._measurements;\n }\n set measurements(value: boolean) {\n this._measurements = value;\n }\n get dictation(): boolean {\n return this._dictation;\n }\n set dictation(value: boolean) {\n this._dictation = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n S2tCloudProviderConfigDeepgram.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(): S2tCloudProviderConfigDeepgram.AsObject {\n return {\n punctuate: this.punctuate,\n smartFormat: this.smartFormat,\n numerals: this.numerals,\n measurements: this.measurements,\n dictation: this.dictation\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 ): S2tCloudProviderConfigDeepgram.AsProtobufJSON {\n return {\n punctuate: this.punctuate,\n smartFormat: this.smartFormat,\n numerals: this.numerals,\n measurements: this.measurements,\n dictation: this.dictation\n };\n }\n}\nexport module S2tCloudProviderConfigDeepgram {\n /**\n * Standard JavaScript object representation for S2tCloudProviderConfigDeepgram\n */\n export interface AsObject {\n punctuate: boolean;\n smartFormat: boolean;\n numerals: boolean;\n measurements: boolean;\n dictation: boolean;\n }\n\n /**\n * Protobuf JSON representation for S2tCloudProviderConfigDeepgram\n */\n export interface AsProtobufJSON {\n punctuate: boolean;\n smartFormat: boolean;\n numerals: boolean;\n measurements: boolean;\n dictation: boolean;\n }\n}\n\n/**\n * Message implementation for ondewo.s2t.S2tCloudProviderConfigGoogle\n */\nexport class S2tCloudProviderConfigGoogle implements GrpcMessage {\n static id = 'ondewo.s2t.S2tCloudProviderConfigGoogle';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new S2tCloudProviderConfigGoogle();\n S2tCloudProviderConfigGoogle.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: S2tCloudProviderConfigGoogle) {\n _instance.enableAutomaticPunctuation =\n _instance.enableAutomaticPunctuation || false;\n _instance.enableWordTimeOffsets = _instance.enableWordTimeOffsets || false;\n _instance.enableWordConfidence = _instance.enableWordConfidence || false;\n _instance.transcriptNormalization =\n _instance.transcriptNormalization || false;\n _instance.maxAlternatives = _instance.maxAlternatives || 0;\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: S2tCloudProviderConfigGoogle,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_reader.isEndGroup()) break;\n\n switch (_reader.getFieldNumber()) {\n case 1:\n _instance.enableAutomaticPunctuation = _reader.readBool();\n break;\n case 2:\n _instance.enableWordTimeOffsets = _reader.readBool();\n break;\n case 3:\n _instance.enableWordConfidence = _reader.readBool();\n break;\n case 4:\n _instance.transcriptNormalization = _reader.readBool();\n break;\n case 5:\n _instance.maxAlternatives = _reader.readInt32();\n break;\n default:\n _reader.skipField();\n }\n }\n\n S2tCloudProviderConfigGoogle.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: S2tCloudProviderConfigGoogle,\n _writer: BinaryWriter\n ) {\n if (_instance.enableAutomaticPunctuation) {\n _writer.writeBool(1, _instance.enableAutomaticPunctuation);\n }\n if (_instance.enableWordTimeOffsets) {\n _writer.writeBool(2, _instance.enableWordTimeOffsets);\n }\n if (_instance.enableWordConfidence) {\n _writer.writeBool(3, _instance.enableWordConfidence);\n }\n if (_instance.transcriptNormalization) {\n _writer.writeBool(4, _instance.transcriptNormalization);\n }\n if (_instance.maxAlternatives) {\n _writer.writeInt32(5, _instance.maxAlternatives);\n }\n }\n\n private _enableAutomaticPunctuation: boolean;\n private _enableWordTimeOffsets: boolean;\n private _enableWordConfidence: boolean;\n private _transcriptNormalization: boolean;\n private _maxAlternatives: number;\n\n /**\n * Message constructor. Initializes the properties and applies default Protobuf values if necessary\n * @param _value initial values object or instance of S2tCloudProviderConfigGoogle to deeply clone from\n */\n constructor(\n _value?: RecursivePartial<S2tCloudProviderConfigGoogle.AsObject>\n ) {\n _value = _value || {};\n this.enableAutomaticPunctuation = _value.enableAutomaticPunctuation;\n this.enableWordTimeOffsets = _value.enableWordTimeOffsets;\n this.enableWordConfidence = _value.enableWordConfidence;\n this.transcriptNormalization = _value.transcriptNormalization;\n this.maxAlternatives = _value.maxAlternatives;\n S2tCloudProviderConfigGoogle.refineValues(this);\n }\n get enableAutomaticPunctuation(): boolean {\n return this._enableAutomaticPunctuation;\n }\n set enableAutomaticPunctuation(value: boolean) {\n this._enableAutomaticPunctuation = value;\n }\n get enableWordTimeOffsets(): boolean {\n return this._enableWordTimeOffsets;\n }\n set enableWordTimeOffsets(value: boolean) {\n this._enableWordTimeOffsets = value;\n }\n get enableWordConfidence(): boolean {\n return this._enableWordConfidence;\n }\n set enableWordConfidence(value: boolean) {\n this._enableWordConfidence = value;\n }\n get transcriptNormalization(): boolean {\n return this._transcriptNormalization;\n }\n set transcriptNormalization(value: boolean) {\n this._transcriptNormalization = value;\n }\n get maxAlternatives(): number {\n return this._maxAlternatives;\n }\n set maxAlternatives(value: number) {\n this._maxAlternatives = value;\n }\n\n /**\n * Serialize message to binary data\n * @param instance message instance\n */\n serializeBinary() {\n const writer = new BinaryWriter();\n S2tCloudProviderConfigGoogle.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(): S2tCloudProviderConfigGoogle.AsObject {\n return {\n enableAutomaticPunctuation: this.enableAutomaticPunctuation,\n enableWordTimeOffsets: this.enableWordTimeOffsets,\n enableWordConfidence: this.enableWordConfidence,\n transcriptNormalization: this.transcriptNormalization,\n maxAlternatives: this.maxAlternatives\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 ): S2tCloudProviderConfigGoogle.AsProtobufJSON {\n return {\n enableAutomaticPunctuation: this.enableAutomaticPunctuation,\n enableWordTimeOffsets: this.enableWordTimeOffsets,\n enableWordConfidence: this.enableWordConfidence,\n transcriptNormalization: this.transcriptNormalization,\n maxAlternatives: this.maxAlternatives\n };\n }\n}\nexport module S2tCloudProviderConfigGoogle {\n /**\n * Standard JavaScript object representation for S2tCloudProviderConfigGoogle\n */\n export interface AsObject {\n enableAutomaticPunctuation: boolean;\n enableWordTimeOffsets: boolean;\n enableWordConfidence: boolean;\n transcriptNormalization: boolean;\n maxAlternatives: number;\n }\n\n /**\n * Protobuf JSON representation for S2tCloudProviderConfigGoogle\n */\n export interface AsProtobufJSON {\n enableAutomaticPunctuation: boolean;\n enableWordTimeOffsets: boolean;\n enableWordConfidence: boolean;\n transcriptNormalization: boolean;\n maxAlternatives: number;\n }\n}\n\n/**\n * Message implementation for ondewo.s2t.S2tCloudProviderConfigMicrosoft\n */\nexport class S2tCloudProviderConfigMicrosoft implements GrpcMessage {\n static id = 'ondewo.s2t.S2tCloudProviderConfigMicrosoft';\n\n /**\n * Deserialize binary data to message\n * @param instance message instance\n */\n static deserializeBinary(bytes: ByteSource) {\n const instance = new S2tCloudProviderConfigMicrosoft();\n S2tCloudProviderConfigMicrosoft.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: S2tCloudProviderConfigMicrosoft) {\n _instance.useFastTranscriptionApi =\n _instance.useFastTranscriptionApi || false;\n _instance.useDetailedOutputFormat =\n _instance.useDetailedOutputFormat || false;\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: S2tCloudProviderConfigMicrosoft,\n _reader: BinaryReader\n ) {\n while (_reader.nextField()) {\n if (_re