Builder
Builder for GenerateContentResponseUsageMetadata.
Functions
Link copied to clipboard
Link copied to clipboard
public abstract GenerateContentResponseUsageMetadata.Builder cachedContentTokenCount(Integer cachedContentTokenCount)
Setter for cachedContentTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public abstract GenerateContentResponseUsageMetadata.Builder cacheTokensDetails(List<ModalityTokenCount> cacheTokensDetails)
Setter for cacheTokensDetails.
@CanIgnoreReturnValue()
Setter for cacheTokensDetails builder.
Link copied to clipboard
public abstract GenerateContentResponseUsageMetadata.Builder candidatesTokenCount(Integer candidatesTokenCount)
Setter for candidatesTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public abstract GenerateContentResponseUsageMetadata.Builder candidatesTokensDetails(List<ModalityTokenCount> candidatesTokensDetails)
Setter for candidatesTokensDetails.
@CanIgnoreReturnValue()
Setter for candidatesTokensDetails builder.
Link copied to clipboard
@CanIgnoreReturnValue()
Clears the value of cachedContentTokenCount field.
Link copied to clipboard
@CanIgnoreReturnValue()
Clears the value of cacheTokensDetails field.
Link copied to clipboard
@CanIgnoreReturnValue()
Clears the value of candidatesTokenCount field.
Link copied to clipboard
@CanIgnoreReturnValue()
Clears the value of candidatesTokensDetails field.
Link copied to clipboard
Clears the value of promptTokenCount field.
Link copied to clipboard
@CanIgnoreReturnValue()
Clears the value of promptTokensDetails field.
Link copied to clipboard
@CanIgnoreReturnValue()
Clears the value of thoughtsTokenCount field.
Link copied to clipboard
@CanIgnoreReturnValue()
Clears the value of toolUsePromptTokenCount field.
Link copied to clipboard
@CanIgnoreReturnValue()
Clears the value of toolUsePromptTokensDetails field.
Link copied to clipboard
Clears the value of totalTokenCount field.
Link copied to clipboard
Clears the value of trafficType field.
Link copied to clipboard
public abstract GenerateContentResponseUsageMetadata.Builder promptTokenCount(Integer promptTokenCount)
Setter for promptTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public abstract GenerateContentResponseUsageMetadata.Builder promptTokensDetails(List<ModalityTokenCount> promptTokensDetails)
Setter for promptTokensDetails.
@CanIgnoreReturnValue()
Setter for promptTokensDetails builder.
Link copied to clipboard
public abstract GenerateContentResponseUsageMetadata.Builder thoughtsTokenCount(Integer thoughtsTokenCount)
Setter for thoughtsTokenCount.
Link copied to clipboard
public abstract GenerateContentResponseUsageMetadata.Builder toolUsePromptTokenCount(Integer toolUsePromptTokenCount)
Setter for toolUsePromptTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public abstract GenerateContentResponseUsageMetadata.Builder toolUsePromptTokensDetails(List<ModalityTokenCount> toolUsePromptTokensDetails)
Setter for toolUsePromptTokensDetails.
@CanIgnoreReturnValue()
Setter for toolUsePromptTokensDetails builder.
Link copied to clipboard
public abstract GenerateContentResponseUsageMetadata.Builder totalTokenCount(Integer totalTokenCount)
Setter for totalTokenCount.
Link copied to clipboard
Setter for trafficType.
@CanIgnoreReturnValue()
Setter for trafficType given a known enum.
@CanIgnoreReturnValue()
Setter for trafficType given a string.