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

      if (hasSpeechStartTimeout() != other.hasSpeechStartTimeout()) return false;
      if (hasSpeechStartTimeout()) {
        if (!getSpeechStartTimeout().equals(other.getSpeechStartTimeout())) return false;
      }
      if (hasSpeechEndTimeout() != other.hasSpeechEndTimeout()) return false;
      if (hasSpeechEndTimeout()) {
        if (!getSpeechEndTimeout().equals(other.getSpeechEndTimeout())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }
<pre>
Duration to timeout the stream after speech ends.
</pre>

<code>.google.protobuf.Duration speech_end_timeout = 2;</code>
java-speech/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java