@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig)) {
      return super.equals(obj);
    }
    com.google.cloud.speech.v1p1beta1.RecognitionConfig other =
        (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj;

    if (encoding_ != other.encoding_) return false;
    if (getSampleRateHertz() != other.getSampleRateHertz()) return false;
    if (getAudioChannelCount() != other.getAudioChannelCount()) return false;
    if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel())
      return false;
    if (!getLanguageCode().equals(other.getLanguageCode())) return false;
    if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList()))
      return false;
    if (getMaxAlternatives() != other.getMaxAlternatives()) return false;
    if (getProfanityFilter() != other.getProfanityFilter()) return false;
    if (hasAdaptation() != other.hasAdaptation()) return false;
    if (hasAdaptation()) {
      if (!getAdaptation().equals(other.getAdaptation())) return false;
    }
    if (hasTranscriptNormalization() != other.hasTranscriptNormalization()) return false;
    if (hasTranscriptNormalization()) {
      if (!getTranscriptNormalization().equals(other.getTranscriptNormalization())) return false;
    }
    if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false;
    if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false;
    if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false;
    if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false;
    if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false;
    if (hasEnableSpokenPunctuation()) {
      if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false;
    }
    if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false;
    if (hasEnableSpokenEmojis()) {
      if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false;
    }
    if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false;
    if (getDiarizationSpeakerCount() != other.getDiarizationSpeakerCount()) return false;
    if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false;
    if (hasDiarizationConfig()) {
      if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false;
    }
    if (hasMetadata() != other.hasMetadata()) return false;
    if (hasMetadata()) {
      if (!getMetadata().equals(other.getMetadata())) return false;
    }
    if (!getModel().equals(other.getModel())) return false;
    if (getUseEnhanced() != other.getUseEnhanced()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Set to true to use an enhanced model for speech recognition.
If `use_enhanced` is set to true and the `model` field is not set, then
an appropriate enhanced model is chosen if an enhanced model exists for
the audio.

If `use_enhanced` is true and an enhanced version of the specified model
does not exist, then the speech is recognized using the standard version
of the specified model.
</pre>

<code>bool use_enhanced = 14;</code>

@return The useEnhanced.
java-speech/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java