public boolean isConsumed() {
    return consumed;
  }
Whether the whole stream has been consumed.

<p>Here "consumed" means we have reached the end of the stream.
java-vertexai/google-cloud-vertexai/src/main/java/com/google/cloud/vertexai/generativeai/ResponseStreamIteratorWithHistory.java