public com.google.protobuf.ByteString getTextBytes() {
    java.lang.Object ref = "";
    if (dataCase_ == 1) {
      ref = data_;
    }
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      if (dataCase_ == 1) {
        data_ = b;
      }
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }
<pre>
Optional. Text part (can be code).
</pre>

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

@return The bytes for text.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/Part.java