Class EmbedContentParametersPrivate

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EmbedContentParametersPrivate

@InternalApi public abstract class EmbedContentParametersPrivate extends JsonSerializable
Parameters for the _embed_content method.
  • Constructor Details

    • EmbedContentParametersPrivate

      public EmbedContentParametersPrivate()
  • Method Details

    • model

      public abstract Optional<String> 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

      public abstract Optional<List<Content>> contents()
      The content to embed. Only the `parts.text` fields will be counted.
    • content

      public abstract Optional<Content> content()
      The single content to embed. Only the `parts.text` fields will be counted.
    • embeddingApiType

      public abstract Optional<EmbeddingApiType> embeddingApiType()
      The Vertex embedding API to use.
    • config

      public abstract Optional<EmbedContentConfig> config()
      Configuration that contains optional parameters.
    • builder

      public static EmbedContentParametersPrivate.Builder builder()
      Instantiates a builder for EmbedContentParametersPrivate.
    • toBuilder

      public abstract EmbedContentParametersPrivate.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static EmbedContentParametersPrivate fromJson(String jsonString)
      Deserializes a JSON string to a EmbedContentParametersPrivate object.