Package com.google.genai.types
Class ModalityTokenCount.Builder
java.lang.Object
com.google.genai.types.ModalityTokenCount.Builder
- Enclosing class:
- ModalityTokenCount
Builder for ModalityTokenCount.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ModalityTokenCountbuild()Clears the value of modality field.Clears the value of tokenCount field.abstract ModalityTokenCount.Buildermodality(MediaModality modality) Setter for modality.modality(MediaModality.Known knownType) Setter for modality given a known enum.Setter for modality given a string.abstract ModalityTokenCount.BuildertokenCount(Integer tokenCount) Setter for tokenCount.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modality
Setter for modality.modality: The modality associated with this token count.
-
clearModality
Clears the value of modality field. -
modality
Setter for modality given a known enum.modality: The modality associated with this token count.
-
modality
Setter for modality given a string.modality: The modality associated with this token count.
-
tokenCount
Setter for tokenCount.tokenCount: Number of tokens.
-
clearTokenCount
Clears the value of tokenCount field. -
build
-