Package com.google.genai.types
Class EmbedContentBatch
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EmbedContentBatch
Parameters for the embed_content method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for EmbedContentBatch. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EmbedContentBatch.Builder
builder()
Instantiates a builder for EmbedContentBatch.abstract Optional<EmbedContentConfig>
config()
Configuration that contains optional parameters.contents()
The content to embed.static EmbedContentBatch
Deserializes a JSON string to a EmbedContentBatch object.abstract EmbedContentBatch.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
EmbedContentBatch
public EmbedContentBatch()
-
-
Method Details
-
contents
The content to embed. Only the `parts.text` fields will be counted. -
config
Configuration that contains optional parameters. -
builder
Instantiates a builder for EmbedContentBatch. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EmbedContentBatch object.
-