Package com.google.genai.types
Class ModalityTokenCount.Builder
-
- All Implemented Interfaces:
public abstract class ModalityTokenCount.BuilderBuilder for ModalityTokenCount.
-
-
Constructor Summary
Constructors Constructor Description ModalityTokenCount.Builder()
-
Method Summary
Modifier and Type Method Description abstract ModalityTokenCount.Buildermodality(MediaModality modality)Setter for modality. ModalityTokenCount.BuilderclearModality()Clears the value of modality field. ModalityTokenCount.Buildermodality(MediaModality.Known knownType)Setter for modality given a known enum. ModalityTokenCount.Buildermodality(String modality)Setter for modality given a string. abstract ModalityTokenCount.BuildertokenCount(Integer tokenCount)Setter for tokenCount. ModalityTokenCount.BuilderclearTokenCount()Clears the value of tokenCount field. abstract ModalityTokenCountbuild()-
-
Method Detail
-
modality
abstract ModalityTokenCount.Builder modality(MediaModality modality)
Setter for modality.
modality: The modality associated with this token count.
-
clearModality
@CanIgnoreReturnValue() ModalityTokenCount.Builder clearModality()
Clears the value of modality field.
-
modality
@CanIgnoreReturnValue() ModalityTokenCount.Builder modality(MediaModality.Known knownType)
Setter for modality given a known enum.
modality: The modality associated with this token count.
-
modality
@CanIgnoreReturnValue() ModalityTokenCount.Builder modality(String modality)
Setter for modality given a string.
modality: The modality associated with this token count.
-
tokenCount
abstract ModalityTokenCount.Builder tokenCount(Integer tokenCount)
Setter for tokenCount.
tokenCount: The number of tokens counted for this modality.
-
clearTokenCount
@CanIgnoreReturnValue() ModalityTokenCount.Builder clearTokenCount()
Clears the value of tokenCount field.
-
build
abstract ModalityTokenCount build()
-
-
-
-