@java.lang.Override
  public boolean hasVoice() {
    return ((bitField0_ & 0x00000002) != 0);
  }
<pre>
Required. The desired voice of the synthesized audio.
</pre>

<code>
.google.cloud.texttospeech.v1beta1.VoiceSelectionParams voice = 2 [(.google.api.field_behavior) = REQUIRED];
</code>

@return Whether the voice field is set.
java-texttospeech/proto-google-cloud-texttospeech-v1beta1/src/main/java/com/google/cloud/texttospeech/v1beta1/SynthesizeSpeechRequest.java