Package com.google.genai.types
Class InlinedRequest
-
- All Implemented Interfaces:
public abstract class InlinedRequest extends JsonSerializable
Config for inlined request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classInlinedRequest.BuilderBuilder for InlinedRequest.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description InlinedRequest()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>model()ID of the model to use. abstract Optional<List<Content>>contents()Content of the request. abstract Optional<Map<String, String>>metadata()The metadata to be associated with the request. abstract Optional<GenerateContentConfig>config()Configuration that contains optional model parameters. static InlinedRequest.Builderbuilder()Instantiates a builder for InlinedRequest. abstract InlinedRequest.BuildertoBuilder()Creates a builder with the same values as this instance. static InlinedRequestfromJson(String jsonString)Deserializes a JSON string to a InlinedRequest 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
-
model
abstract Optional<String> model()
ID of the model to use. For a list of models, see `Google models `_.
-
metadata
abstract Optional<Map<String, String>> metadata()
The metadata to be associated with the request.
-
config
abstract Optional<GenerateContentConfig> config()
Configuration that contains optional model parameters.
-
builder
static InlinedRequest.Builder builder()
Instantiates a builder for InlinedRequest.
-
toBuilder
abstract InlinedRequest.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static InlinedRequest fromJson(String jsonString)
Deserializes a JSON string to a InlinedRequest object.
-
-
-
-