Package com.google.genai.types
Class InlinedResponse
-
- All Implemented Interfaces:
public abstract class InlinedResponse extends JsonSerializable
Config for `inlined_responses` parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classInlinedResponse.BuilderBuilder for InlinedResponse.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description InlinedResponse()
-
Method Summary
Modifier and Type Method Description abstract Optional<GenerateContentResponse>response()The response to the request. abstract Optional<Map<String, String>>metadata()The metadata to be associated with the request. abstract Optional<JobError>error()The error encountered while processing the request. static InlinedResponse.Builderbuilder()Instantiates a builder for InlinedResponse. abstract InlinedResponse.BuildertoBuilder()Creates a builder with the same values as this instance. static InlinedResponsefromJson(String jsonString)Deserializes a JSON string to a InlinedResponse object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
response
abstract Optional<GenerateContentResponse> response()
The response to the request.
-
metadata
abstract Optional<Map<String, String>> metadata()
The metadata to be associated with the request.
-
builder
static InlinedResponse.Builder builder()
Instantiates a builder for InlinedResponse.
-
toBuilder
abstract InlinedResponse.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static InlinedResponse fromJson(String jsonString)
Deserializes a JSON string to a InlinedResponse object.
-
-
-
-