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

      if (!getValueCase().equals(other.getValueCase())) return false;
      switch (valueCase_) {
        case 1:
          if (!getPhraseSet().equals(other.getPhraseSet())) return false;
          break;
        case 2:
          if (!getInlinePhraseSet().equals(other.getInlinePhraseSet())) return false;
          break;
        case 0:
        default:
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
An inline defined PhraseSet.
</pre>

<code>.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;</code>
java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeechAdaptation.java