Package com.google.genai.types
Class HttpResponse.Builder
-
- All Implemented Interfaces:
public abstract class HttpResponse.BuilderBuilder for HttpResponse.
-
-
Constructor Summary
Constructors Constructor Description HttpResponse.Builder()
-
Method Summary
Modifier and Type Method Description abstract HttpResponse.Builderheaders(Map<String, String> headers)Setter for headers. HttpResponse.BuilderclearHeaders()Clears the value of headers field. abstract HttpResponse.Builderbody(String body)Setter for body. HttpResponse.BuilderclearBody()Clears the value of body field. abstract HttpResponsebuild()-
-
Method Detail
-
headers
abstract HttpResponse.Builder headers(Map<String, String> headers)
Setter for headers.
headers: Used to retain the processed HTTP headers in the response.
-
clearHeaders
@CanIgnoreReturnValue() HttpResponse.Builder clearHeaders()
Clears the value of headers field.
-
body
abstract HttpResponse.Builder body(String body)
Setter for body.
body: The raw HTTP response body, in JSON format.
-
clearBody
@CanIgnoreReturnValue() HttpResponse.Builder clearBody()
Clears the value of body field.
-
build
abstract HttpResponse build()
-
-
-
-