Package com.google.genai.types
Class EmbedContentBatch.Builder
-
- All Implemented Interfaces:
public abstract class EmbedContentBatch.BuilderBuilder for EmbedContentBatch.
-
-
Constructor Summary
Constructors Constructor Description EmbedContentBatch.Builder()
-
Method Summary
Modifier and Type Method Description abstract EmbedContentBatch.Buildercontents(List<Content> contents)Setter for contents. EmbedContentBatch.Buildercontents(Array<Content> contents)Setter for contents. EmbedContentBatch.Buildercontents(Array<Content.Builder> contentsBuilders)Setter for contents builder. EmbedContentBatch.BuilderclearContents()Clears the value of contents field. abstract EmbedContentBatch.Builderconfig(EmbedContentConfig config)Setter for config. EmbedContentBatch.Builderconfig(EmbedContentConfig.Builder configBuilder)Setter for config builder. EmbedContentBatch.BuilderclearConfig()Clears the value of config field. abstract EmbedContentBatchbuild()-
-
Method Detail
-
contents
abstract EmbedContentBatch.Builder contents(List<Content> contents)
Setter for contents.
contents: The content to embed. Only the `parts.text` fields will be counted.
-
contents
@CanIgnoreReturnValue() EmbedContentBatch.Builder contents(Array<Content> contents)
Setter for contents.
contents: The content to embed. Only the `parts.text` fields will be counted.
-
contents
@CanIgnoreReturnValue() EmbedContentBatch.Builder contents(Array<Content.Builder> contentsBuilders)
Setter for contents builder.
contents: The content to embed. Only the `parts.text` fields will be counted.
-
clearContents
@CanIgnoreReturnValue() EmbedContentBatch.Builder clearContents()
Clears the value of contents field.
-
config
abstract EmbedContentBatch.Builder config(EmbedContentConfig config)
Setter for config.
config: Configuration that contains optional parameters.
-
config
@CanIgnoreReturnValue() EmbedContentBatch.Builder config(EmbedContentConfig.Builder configBuilder)
Setter for config builder.
config: Configuration that contains optional parameters.
-
clearConfig
@CanIgnoreReturnValue() EmbedContentBatch.Builder clearConfig()
Clears the value of config field.
-
build
abstract EmbedContentBatch build()
-
-
-
-