Package com.google.genai.types
Class EmbedContentBatch.Builder
java.lang.Object
com.google.genai.types.EmbedContentBatch.Builder
- Enclosing class:
- EmbedContentBatch
Builder for EmbedContentBatch.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract EmbedContentBatchbuild()Clears the value of config field.Clears the value of contents field.abstract EmbedContentBatch.Builderconfig(EmbedContentConfig config) Setter for config.config(EmbedContentConfig.Builder configBuilder) Setter for config builder.Setter for contents.contents(Content.Builder... contentsBuilders) Setter for contents builder.abstract EmbedContentBatch.BuilderSetter for contents.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
contents
Setter for contents.contents: The content to embed. Only the `parts.text` fields will be counted.
-
contents
Setter for contents.contents: The content to embed. Only the `parts.text` fields will be counted.
-
contents
@CanIgnoreReturnValue public EmbedContentBatch.Builder contents(Content.Builder... contentsBuilders) Setter for contents builder.contents: The content to embed. Only the `parts.text` fields will be counted.
-
clearContents
Clears the value of contents field. -
config
Setter for config.config: Configuration that contains optional parameters.
-
config
@CanIgnoreReturnValue public EmbedContentBatch.Builder config(EmbedContentConfig.Builder configBuilder) Setter for config builder.config: Configuration that contains optional parameters.
-
clearConfig
Clears the value of config field. -
build
-