Builder

public abstract class Builder

Builder for GenerateContentResponseUsageMetadata.

Functions

Link copied to clipboard
Link copied to clipboard
Setter for cachedContentTokenCount.
Link copied to clipboard
Setter for cacheTokensDetails.
@CanIgnoreReturnValue()
public GenerateContentResponseUsageMetadata.Builder cacheTokensDetails(Array<ModalityTokenCount.Builder> cacheTokensDetailsBuilders)
Setter for cacheTokensDetails builder.
Link copied to clipboard
Setter for candidatesTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponseUsageMetadata.Builder candidatesTokensDetails(Array<ModalityTokenCount> candidatesTokensDetails)
Setter for candidatesTokensDetails.
@CanIgnoreReturnValue()
public GenerateContentResponseUsageMetadata.Builder candidatesTokensDetails(Array<ModalityTokenCount.Builder> candidatesTokensDetailsBuilders)
Setter for candidatesTokensDetails 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 candidatesTokenCount field.
Link copied to clipboard
Clears the value of candidatesTokensDetails 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 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
Setter for promptTokensDetails.
@CanIgnoreReturnValue()
public GenerateContentResponseUsageMetadata.Builder promptTokensDetails(Array<ModalityTokenCount.Builder> promptTokensDetailsBuilders)
Setter for promptTokensDetails builder.
Link copied to clipboard
Setter for thoughtsTokenCount.
Link copied to clipboard
Setter for toolUsePromptTokenCount.
Link copied to clipboard
@CanIgnoreReturnValue()
public GenerateContentResponseUsageMetadata.Builder toolUsePromptTokensDetails(Array<ModalityTokenCount> toolUsePromptTokensDetails)
Setter for toolUsePromptTokensDetails.
@CanIgnoreReturnValue()
public GenerateContentResponseUsageMetadata.Builder toolUsePromptTokensDetails(Array<ModalityTokenCount.Builder> toolUsePromptTokensDetailsBuilders)
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.
@CanIgnoreReturnValue()
public GenerateContentResponseUsageMetadata.Builder trafficType(String trafficType)
Setter for trafficType given a string.