Package com.google.genai
Class ApiResponse
-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
@InternalApi() public abstract class ApiResponse implements AutoCloseable
The API response contains a response to a call to the GenAI APIs.
-
-
Constructor Summary
Constructors Constructor Description ApiResponse()
-
Method Summary
Modifier and Type Method Description abstract ResponseBodygetBody()Gets the ResponseBody. abstract HeadersgetHeaders()Returns all of the headers from the response. abstract voidclose()-
-
Method Detail
-
getBody
abstract ResponseBody getBody()
Gets the ResponseBody.
-
getHeaders
abstract Headers getHeaders()
Returns all of the headers from the response.
-
close
abstract void close()
-
-
-
-