@Deprecated public class ResponseStreamIteratorWithHistory<GenerateContentResponse> extends Object implements Iterator<GenerateContentResponse>
| Constructor and Description |
|---|
ResponseStreamIteratorWithHistory(Iterator serverStreamIterator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
List<GenerateContentResponse> |
getHistory()
Deprecated.
Retrieves all the chunks in a stream of responses.
|
boolean |
hasNext()
Deprecated.
|
boolean |
isConsumed()
Deprecated.
Whether the whole stream has been consumed.
|
GenerateContentResponse |
next()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic ResponseStreamIteratorWithHistory(Iterator serverStreamIterator)
public boolean hasNext()
hasNext in interface Iterator<GenerateContentResponse>public GenerateContentResponse next()
next in interface Iterator<GenerateContentResponse>public List<GenerateContentResponse> getHistory()
public boolean isConsumed()
Here "consumed" means we have reached the end of the stream.
Copyright © 2025 Google LLC. All rights reserved.