Package com.google.genai.types
Class EmbedContentParameters.Builder
-
- All Implemented Interfaces:
public abstract class EmbedContentParameters.BuilderBuilder for EmbedContentParameters.
-
-
Constructor Summary
Constructors Constructor Description EmbedContentParameters.Builder()
-
Method Summary
Modifier and Type Method Description abstract EmbedContentParameters.Buildermodel(String model)Setter for model. EmbedContentParameters.BuilderclearModel()Clears the value of model field. abstract EmbedContentParameters.Buildercontents(List<Content> contents)Setter for contents. EmbedContentParameters.Buildercontents(Array<Content> contents)Setter for contents. EmbedContentParameters.Buildercontents(Array<Content.Builder> contentsBuilders)Setter for contents builder. EmbedContentParameters.BuilderclearContents()Clears the value of contents field. abstract EmbedContentParameters.Builderconfig(EmbedContentConfig config)Setter for config. EmbedContentParameters.Builderconfig(EmbedContentConfig.Builder configBuilder)Setter for config builder. EmbedContentParameters.BuilderclearConfig()Clears the value of config field. abstract EmbedContentParametersbuild()-
-
Method Detail
-
model
abstract EmbedContentParameters.Builder model(String model)
Setter for model.
model: ID of the model to use. For a list of models, see `Google models `_.
-
clearModel
@CanIgnoreReturnValue() EmbedContentParameters.Builder clearModel()
Clears the value of model field.
-
contents
abstract EmbedContentParameters.Builder contents(List<Content> contents)
Setter for contents.
contents: The content to embed. Only the `parts.text` fields will be counted.
-
contents
@CanIgnoreReturnValue() EmbedContentParameters.Builder contents(Array<Content> contents)
Setter for contents.
contents: The content to embed. Only the `parts.text` fields will be counted.
-
contents
@CanIgnoreReturnValue() EmbedContentParameters.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() EmbedContentParameters.Builder clearContents()
Clears the value of contents field.
-
config
abstract EmbedContentParameters.Builder config(EmbedContentConfig config)
Setter for config.
config: Configuration that contains optional parameters.
-
config
@CanIgnoreReturnValue() EmbedContentParameters.Builder config(EmbedContentConfig.Builder configBuilder)
Setter for config builder.
config: Configuration that contains optional parameters.
-
clearConfig
@CanIgnoreReturnValue() EmbedContentParameters.Builder clearConfig()
Clears the value of config field.
-
build
abstract EmbedContentParameters build()
-
-
-
-