/// /// NativeAzureConfig.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.clarion.azure import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "NativeAzureConfig". */ @DoNotStrip @Keep data class NativeAzureConfig( @DoNotStrip @Keep val language: String, @DoNotStrip @Keep val emitPartials: Boolean, @DoNotStrip @Keep val emitAudioLevel: Boolean, @DoNotStrip @Keep val audioLevelIntervalMs: Double, @DoNotStrip @Keep val subscriptionKey: String, @DoNotStrip @Keep val region: String, @DoNotStrip @Keep val authToken: String, @DoNotStrip @Keep val endpoint: String, @DoNotStrip @Keep val outputFormat: String, @DoNotStrip @Keep val profanity: String, @DoNotStrip @Keep val enableSpeakerDiarization: Boolean, @DoNotStrip @Keep val autoDetectLanguages: String, @DoNotStrip @Keep val silenceTimeoutMs: Double, @DoNotStrip @Keep val phraseHints: String, @DoNotStrip @Keep val degradeOnTierMismatch: Boolean ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is NativeAzureConfig) return false return Objects.deepEquals(this.language, other.language) && Objects.deepEquals(this.emitPartials, other.emitPartials) && Objects.deepEquals(this.emitAudioLevel, other.emitAudioLevel) && Objects.deepEquals(this.audioLevelIntervalMs, other.audioLevelIntervalMs) && Objects.deepEquals(this.subscriptionKey, other.subscriptionKey) && Objects.deepEquals(this.region, other.region) && Objects.deepEquals(this.authToken, other.authToken) && Objects.deepEquals(this.endpoint, other.endpoint) && Objects.deepEquals(this.outputFormat, other.outputFormat) && Objects.deepEquals(this.profanity, other.profanity) && Objects.deepEquals(this.enableSpeakerDiarization, other.enableSpeakerDiarization) && Objects.deepEquals(this.autoDetectLanguages, other.autoDetectLanguages) && Objects.deepEquals(this.silenceTimeoutMs, other.silenceTimeoutMs) && Objects.deepEquals(this.phraseHints, other.phraseHints) && Objects.deepEquals(this.degradeOnTierMismatch, other.degradeOnTierMismatch) } override fun hashCode(): Int { return arrayOf( language, emitPartials, emitAudioLevel, audioLevelIntervalMs, subscriptionKey, region, authToken, endpoint, outputFormat, profanity, enableSpeakerDiarization, autoDetectLanguages, silenceTimeoutMs, phraseHints, degradeOnTierMismatch ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(language: String, emitPartials: Boolean, emitAudioLevel: Boolean, audioLevelIntervalMs: Double, subscriptionKey: String, region: String, authToken: String, endpoint: String, outputFormat: String, profanity: String, enableSpeakerDiarization: Boolean, autoDetectLanguages: String, silenceTimeoutMs: Double, phraseHints: String, degradeOnTierMismatch: Boolean): NativeAzureConfig { return NativeAzureConfig(language, emitPartials, emitAudioLevel, audioLevelIntervalMs, subscriptionKey, region, authToken, endpoint, outputFormat, profanity, enableSpeakerDiarization, autoDetectLanguages, silenceTimeoutMs, phraseHints, degradeOnTierMismatch) } } }