@Deprecated public class ResponseStream<GenerateContentResponse> extends Object implements Iterable<GenerateContentResponse>
| Constructor and Description |
|---|
ResponseStream(ResponseStreamIteratorWithHistory iteratorWithHistory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConsumed()
Deprecated.
Whether the content has been consumed.
|
Iterator<GenerateContentResponse> |
iterator()
Deprecated.
|
Stream<GenerateContentResponse> |
stream()
Deprecated.
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.