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

    if (!getLanguageCode().equals(other.getLanguageCode())) return false;
    if (!getName().equals(other.getName())) return false;
    if (ssmlGender_ != other.ssmlGender_) return false;
    if (hasCustomVoice() != other.hasCustomVoice()) return false;
    if (hasCustomVoice()) {
      if (!getCustomVoice().equals(other.getCustomVoice())) return false;
    }
    if (hasVoiceClone() != other.hasVoiceClone()) return false;
    if (hasVoiceClone()) {
      if (!getVoiceClone().equals(other.getVoiceClone())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Optional. The configuration for a voice clone. If
[VoiceCloneParams.voice_clone_key] is set, the service will choose the
voice clone matching the specified configuration.
</pre>

<code>
.google.cloud.texttospeech.v1beta1.VoiceCloneParams voice_clone = 5 [(.google.api.field_behavior) = OPTIONAL];
</code>
java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/VoiceSelectionParams.java