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

    if (hasStartOffset() != other.hasStartOffset()) return false;
    if (hasStartOffset()) {
      if (!getStartOffset().equals(other.getStartOffset())) return false;
    }
    if (hasEndOffset() != other.hasEndOffset()) return false;
    if (hasEndOffset()) {
      if (!getEndOffset().equals(other.getEndOffset())) return false;
    }
    if (!getWord().equals(other.getWord())) return false;
    if (java.lang.Float.floatToIntBits(getConfidence())
        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
    if (!getSpeakerLabel().equals(other.getSpeakerLabel())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
A distinct label is assigned for every speaker within the audio. This field
specifies which one of those speakers was detected to have spoken this
word. `speaker_label` is set if
[SpeakerDiarizationConfig][google.cloud.speech.v2.SpeakerDiarizationConfig]
is given and only in the top alternative.
</pre>

<code>string speaker_label = 6;</code>

@return The bytes for speakerLabel.
java-speech/proto-google-cloud-speech-v2/src/main/java/com/google/cloud/speech/v2/WordInfo.java