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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiResponse()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ResponseBody getBody() Gets the ResponseBody.
      abstract Headers getHeaders() Returns all of the headers from the response.
      abstract void close()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApiResponse

        ApiResponse()
    • 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()