Package com.google.genai.types
Class HttpResponse.Builder
java.lang.Object
com.google.genai.types.HttpResponse.Builder
- Enclosing class:
- HttpResponse
Builder for HttpResponse.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract HttpResponse.BuilderSetter for body.abstract HttpResponsebuild()Clears the value of body field.Clears the value of headers field.abstract HttpResponse.BuilderSetter for headers.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headers
Setter for headers.headers: Used to retain the processed HTTP headers in the response.
-
clearHeaders
Clears the value of headers field. -
body
Setter for body.body: The raw HTTP response body, in JSON format.
-
clearBody
Clears the value of body field. -
build
-