public boolean hasText() {
    return inputSourceCase_ == 1;
  }
<pre>
The raw text to be synthesized. It is recommended that each input
contains complete, terminating sentences, which results in better prosody
in the output audio.
</pre>

<code>string text = 1;</code>

@return Whether the text field is set.
java-texttospeech/proto-google-cloud-texttospeech-v1/src/main/java/com/google/cloud/texttospeech/v1/StreamingSynthesisInput.java