Class EmbedContentBatch

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

public abstract class EmbedContentBatch extends JsonSerializable
Parameters for the embed_content method.
  • Constructor Details

    • EmbedContentBatch

      public EmbedContentBatch()
  • Method Details

    • contents

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

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

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

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

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