@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.vertexai.api.Segment)) {
      return super.equals(obj);
    }
    com.google.cloud.vertexai.api.Segment other = (com.google.cloud.vertexai.api.Segment) obj;

    if (getPartIndex() != other.getPartIndex()) return false;
    if (getStartIndex() != other.getStartIndex()) return false;
    if (getEndIndex() != other.getEndIndex()) return false;
    if (!getText().equals(other.getText())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<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