public class ResponseStream<GenerateContentResponse> implements Iterable<GenerateContentResponse>Deprecated. This class and its package are deprecated. See the migration guide for more details.
An iterable of GenerateContentResponse.
Implements
Iterable<GenerateContentResponse>Type Parameter |
|
|---|---|
| Name | Description |
GenerateContentResponse |
|
Constructors
ResponseStream(ResponseStreamIteratorWithHistory iteratorWithHistory) (deprecated)
public ResponseStream(ResponseStreamIteratorWithHistory iteratorWithHistory)| Parameter | |
|---|---|
| Name | Description |
iteratorWithHistory |
ResponseStreamIteratorWithHistory |
Methods
isConsumed() (deprecated)
public boolean isConsumed()Whether the content has been consumed.
"consumed" means all the content has been iterated through.
| Returns | |
|---|---|
| Type | Description |
boolean |
|
iterator() (deprecated)
public Iterator<GenerateContentResponse> iterator()| Returns | |
|---|---|
| Type | Description |
Iterator<GenerateContentResponse> |
|
| Exceptions | |
|---|---|
| Type | Description |
IllegalStateException |
|
stream() (deprecated)
public Stream<GenerateContentResponse> stream()Makes a stream from the instance.
| Returns | |
|---|---|
| Type | Description |
Stream<GenerateContentResponse> |
|