Class EmbedContentParametersPrivate.Builder
- Enclosing class:
- EmbedContentParametersPrivate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchContents(Content... batchContents) Setter for batchContents.batchContents(Content.Builder... batchContentsBuilders) Setter for batchContents builder.batchContents(List<Content> batchContents) Setter for batchContents.abstract EmbedContentParametersPrivatebuild()Clears the value of batchContents field.Clears the value of config field.Clears the value of content field.Clears the value of contents field.Clears the value of embeddingApiType field.Clears the value of model field.config(EmbedContentConfig config) Setter for config.config(EmbedContentConfig.Builder configBuilder) Setter for config builder.Setter for content.content(Content.Builder contentBuilder) Setter for content builder.Setter for contents.contents(Content.Builder... contentsBuilders) Setter for contents builder.Setter for contents.embeddingApiType(EmbeddingApiType embeddingApiType) Setter for embeddingApiType.embeddingApiType(EmbeddingApiType.Known knownType) Setter for embeddingApiType given a known enum.embeddingApiType(String embeddingApiType) Setter for embeddingApiType given a string.Setter for model.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
Setter for model.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>`_.
-
clearModel
Clears the value of model field. -
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 EmbedContentParametersPrivate.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. -
content
Setter for content.content: The single content to embed. Only the `parts.text` fields will be counted.
-
content
@CanIgnoreReturnValue public EmbedContentParametersPrivate.Builder content(Content.Builder contentBuilder) Setter for content builder.content: The single content to embed. Only the `parts.text` fields will be counted.
-
clearContent
Clears the value of content field. -
embeddingApiType
public abstract EmbedContentParametersPrivate.Builder embeddingApiType(EmbeddingApiType embeddingApiType) Setter for embeddingApiType.embeddingApiType: The Gemini platform embedding API to use.
-
clearEmbeddingApiType
Clears the value of embeddingApiType field. -
embeddingApiType
@CanIgnoreReturnValue public EmbedContentParametersPrivate.Builder embeddingApiType(EmbeddingApiType.Known knownType) Setter for embeddingApiType given a known enum.embeddingApiType: The Gemini platform embedding API to use.
-
embeddingApiType
@CanIgnoreReturnValue public EmbedContentParametersPrivate.Builder embeddingApiType(String embeddingApiType) Setter for embeddingApiType given a string.embeddingApiType: The Gemini platform embedding API to use.
-
batchContents
Setter for batchContents.batchContents: The multiple contents to embed.
-
batchContents
@CanIgnoreReturnValue public EmbedContentParametersPrivate.Builder batchContents(Content... batchContents) Setter for batchContents.batchContents: The multiple contents to embed.
-
batchContents
@CanIgnoreReturnValue public EmbedContentParametersPrivate.Builder batchContents(Content.Builder... batchContentsBuilders) Setter for batchContents builder.batchContents: The multiple contents to embed.
-
clearBatchContents
Clears the value of batchContents field. -
config
Setter for config.config: Configuration that contains optional parameters.
-
config
@CanIgnoreReturnValue public EmbedContentParametersPrivate.Builder config(EmbedContentConfig.Builder configBuilder) Setter for config builder.config: Configuration that contains optional parameters.
-
clearConfig
Clears the value of config field. -
build
-