@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (partIndex_ != 0) {
      output.writeInt32(1, partIndex_);
    }
    if (startIndex_ != 0) {
      output.writeInt32(2, startIndex_);
    }
    if (endIndex_ != 0) {
      output.writeInt32(3, endIndex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, text_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. The text corresponding to the segment from the response.
</pre>

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

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