@java.lang.Override
    public boolean hasText() {
      return dataCase_ == 1;
    }
<pre>
Optional. Text part (can be code).
</pre>

<code>string text = 1 [(.google.api.field_behavior) = OPTIONAL];</code>

@return Whether the text field is set.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Part.java