public class ResponseStreamIteratorWithHistory<GenerateContentResponse> implements Iterator<GenerateContentResponse>Deprecated. This class and its package are deprecated. See the migration guide for more details.
Iterator of the ResponseStream that holds the response chunks.
Implements
Iterator<GenerateContentResponse>Type Parameter |
|
|---|---|
| Name | Description |
GenerateContentResponse |
|
Constructors
ResponseStreamIteratorWithHistory(Iterator serverStreamIterator) (deprecated)
public ResponseStreamIteratorWithHistory(Iterator serverStreamIterator)| Parameter | |
|---|---|
| Name | Description |
serverStreamIterator |
Iterator |
Methods
getHistory() (deprecated)
public List<GenerateContentResponse> getHistory()Retrieves all the chunks in a stream of responses.
| Returns | |
|---|---|
| Type | Description |
List<GenerateContentResponse> |
|
hasNext() (deprecated)
public boolean hasNext()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isConsumed() (deprecated)
public boolean isConsumed()Whether the whole stream has been consumed.
Here "consumed" means we have reached the end of the stream.
| Returns | |
|---|---|
| Type | Description |
boolean |
|
next() (deprecated)
public GenerateContentResponse next()| Returns | |
|---|---|
| Type | Description |
GenerateContentResponse |
|