@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (partIndex_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, partIndex_);
    }
    if (startIndex_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, startIndex_);
    }
    if (endIndex_ != 0) {
      size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endIndex_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, text_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<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