Builder
Builder for UsageMetadata.
Functions
Link copied to clipboard
Link copied to clipboard
Setter for cachedContentTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public abstract UsageMetadata.Builder cacheTokensDetails(List<ModalityTokenCount> cacheTokensDetails)
Setter for cacheTokensDetails.
@CanIgnoreReturnValue()
Setter for cacheTokensDetails builder.
Link copied to clipboard
Clears the value of cachedContentTokenCount field.
Link copied to clipboard
Clears the value of cacheTokensDetails field.
Link copied to clipboard
Clears the value of promptTokenCount field.
Link copied to clipboard
Clears the value of promptTokensDetails field.
Link copied to clipboard
Clears the value of responseTokenCount field.
Link copied to clipboard
Clears the value of responseTokensDetails field.
Link copied to clipboard
Clears the value of thoughtsTokenCount field.
Link copied to clipboard
Clears the value of toolUsePromptTokenCount field.
Link copied to clipboard
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
Setter for promptTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public abstract UsageMetadata.Builder promptTokensDetails(List<ModalityTokenCount> promptTokensDetails)
Setter for promptTokensDetails.
@CanIgnoreReturnValue()
Setter for promptTokensDetails builder.
Link copied to clipboard
Setter for responseTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public abstract UsageMetadata.Builder responseTokensDetails(List<ModalityTokenCount> responseTokensDetails)
Setter for responseTokensDetails.
@CanIgnoreReturnValue()
Setter for responseTokensDetails builder.
Link copied to clipboard
Setter for thoughtsTokenCount.
Link copied to clipboard
Setter for toolUsePromptTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public abstract UsageMetadata.Builder toolUsePromptTokensDetails(List<ModalityTokenCount> toolUsePromptTokensDetails)
Setter for toolUsePromptTokensDetails.
@CanIgnoreReturnValue()
Setter for toolUsePromptTokensDetails builder.
Link copied to clipboard
Setter for totalTokenCount.
Link copied to clipboard
Setter for trafficType.
Setter for trafficType given a known enum.
Setter for trafficType given a string.