| Constructor and Description |
|---|
ResponseStream(ResponseStreamIteratorWithHistory iteratorWithHistory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConsumed()
Whether the content has been consumed.
|
Iterator<GenerateContentResponse> |
iterator() |
Stream<GenerateContentResponse> |
stream()
Makes a stream from the instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ResponseStream(ResponseStreamIteratorWithHistory iteratorWithHistory)
public Iterator<GenerateContentResponse> iterator() throws IllegalStateException
iterator in interface Iterable<GenerateContentResponse>IllegalStateExceptionpublic Stream<GenerateContentResponse> stream()
public boolean isConsumed()
"consumed" means all the content has been iterated through.
Copyright © 2025 Google LLC. All rights reserved.