Package com.google.genai.types
Class EmbedContentParametersPrivate
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EmbedContentParametersPrivate
Parameters for the _embed_content method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for EmbedContentParametersPrivate. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for EmbedContentParametersPrivate.abstract Optional<EmbedContentConfig>config()Configuration that contains optional parameters.content()The single content to embed.contents()The content to embed.abstract Optional<EmbeddingApiType>The Vertex embedding API to use.Deserializes a JSON string to a EmbedContentParametersPrivate object.model()ID of the model to use.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
EmbedContentParametersPrivate
public EmbedContentParametersPrivate()
-
-
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. -
content
The single content to embed. Only the `parts.text` fields will be counted. -
embeddingApiType
The Vertex embedding API to use. -
config
Configuration that contains optional parameters. -
builder
Instantiates a builder for EmbedContentParametersPrivate. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EmbedContentParametersPrivate object.
-