Package com.google.genai.types
Class SingleEmbedContentResponse.Builder
-
- All Implemented Interfaces:
public abstract class SingleEmbedContentResponse.BuilderBuilder for SingleEmbedContentResponse.
-
-
Constructor Summary
Constructors Constructor Description SingleEmbedContentResponse.Builder()
-
Method Summary
Modifier and Type Method Description abstract SingleEmbedContentResponse.Builderembedding(ContentEmbedding embedding)Setter for embedding. SingleEmbedContentResponse.Builderembedding(ContentEmbedding.Builder embeddingBuilder)Setter for embedding builder. SingleEmbedContentResponse.BuilderclearEmbedding()Clears the value of embedding field. abstract SingleEmbedContentResponse.BuildertokenCount(Long tokenCount)Setter for tokenCount. SingleEmbedContentResponse.BuilderclearTokenCount()Clears the value of tokenCount field. abstract SingleEmbedContentResponsebuild()-
-
Method Detail
-
embedding
abstract SingleEmbedContentResponse.Builder embedding(ContentEmbedding embedding)
Setter for embedding.
embedding: The response to the request.
-
embedding
@CanIgnoreReturnValue() SingleEmbedContentResponse.Builder embedding(ContentEmbedding.Builder embeddingBuilder)
Setter for embedding builder.
embedding: The response to the request.
-
clearEmbedding
@CanIgnoreReturnValue() SingleEmbedContentResponse.Builder clearEmbedding()
Clears the value of embedding field.
-
tokenCount
abstract SingleEmbedContentResponse.Builder tokenCount(Long tokenCount)
Setter for tokenCount.
tokenCount: The error encountered while processing the request.
-
clearTokenCount
@CanIgnoreReturnValue() SingleEmbedContentResponse.Builder clearTokenCount()
Clears the value of tokenCount field.
-
build
abstract SingleEmbedContentResponse build()
-
-
-
-