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

    if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false;
    if (!getName().equals(other.getName())) return false;
    if (ssmlGender_ != other.ssmlGender_) return false;
    if (getNaturalSampleRateHertz() != other.getNaturalSampleRateHertz()) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
The natural sample rate (in hertz) for this voice.
</pre>

<code>int32 natural_sample_rate_hertz = 4;</code>

@return The naturalSampleRateHertz.
java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/Voice.java