Package com.google.genai.types
Class EmbedContentParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EmbedContentParameters
Parameters for the embed_content method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for EmbedContentParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for EmbedContentParameters.abstract Optional<EmbedContentConfig>
config()
Configuration that contains optional parameters.contents()
The content to embed.static EmbedContentParameters
Deserializes a JSON string to a EmbedContentParameters object.model()
ID of the model to use.abstract EmbedContentParameters.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
EmbedContentParameters
public EmbedContentParameters()
-
-
Method Details
-
model
ID of the model to use. For a list of models, see `Google models <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_. -
contents
The content to embed. Only the `parts.text` fields will be counted. -
config
Configuration that contains optional parameters. -
builder
Instantiates a builder for EmbedContentParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EmbedContentParameters object.
-