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

    if (!getModel().equals(other.getModel())) return false;
    if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false;
    if (hasFeatures() != other.hasFeatures()) return false;
    if (hasFeatures()) {
      if (!getFeatures().equals(other.getFeatures())) 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 (hasTranslationConfig() != other.hasTranslationConfig()) return false;
    if (hasTranslationConfig()) {
      if (!getTranslationConfig().equals(other.getTranslationConfig())) return false;
    }
    if (!getDecodingConfigCase().equals(other.getDecodingConfigCase())) return false;
    switch (decodingConfigCase_) {
      case 7:
        if (!getAutoDecodingConfig().equals(other.getAutoDecodingConfig())) return false;
        break;
      case 8:
        if (!getExplicitDecodingConfig().equals(other.getExplicitDecodingConfig())) return false;
        break;
      case 0:
      default:
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. Optional configuration used to automatically run translation on
the given audio to the desired language for supported models.
</pre>

<code>
.google.cloud.speech.v2.TranslationConfig translation_config = 15 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/RecognitionConfig.java