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

    if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false;
    if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Required. Maximum number of speakers in the conversation. Valid values are:
1-6. Must be &gt;= `min_speaker_count`. This range gives you more flexibility
by allowing the system to automatically determine the correct number of
speakers.
</pre>

<code>int32 max_speaker_count = 3 [(.google.api.field_behavior) = REQUIRED];</code>

@return The maxSpeakerCount.
java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/SpeakerDiarizationConfig.java