public class GeminiUsageMetadata extends Object
| Constructor and Description |
|---|
GeminiUsageMetadata() |
GeminiUsageMetadata(int promptTokenCount,
int candidatesTokenCount,
int totalTokenCount,
int cachedContentTokenCount,
int thoughtsTokenCount,
List<GeminipTokensDetail> promptTokensDetails,
List<GeminipTokensDetail> cacheTokensDetails) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCachedContentTokenCount() |
List<GeminipTokensDetail> |
getCacheTokensDetails() |
int |
getCandidatesTokenCount() |
int |
getPromptTokenCount() |
List<GeminipTokensDetail> |
getPromptTokensDetails() |
int |
getThoughtsTokenCount() |
int |
getTotalTokenCount() |
void |
setCachedContentTokenCount(int cachedContentTokenCount) |
void |
setCacheTokensDetails(List<GeminipTokensDetail> cacheTokensDetails) |
void |
setCandidatesTokenCount(int candidatesTokenCount) |
void |
setPromptTokenCount(int promptTokenCount) |
void |
setPromptTokensDetails(List<GeminipTokensDetail> promptTokensDetails) |
void |
setThoughtsTokenCount(int thoughtsTokenCount) |
void |
setTotalTokenCount(int totalTokenCount) |
public GeminiUsageMetadata()
public GeminiUsageMetadata(int promptTokenCount,
int candidatesTokenCount,
int totalTokenCount,
int cachedContentTokenCount,
int thoughtsTokenCount,
List<GeminipTokensDetail> promptTokensDetails,
List<GeminipTokensDetail> cacheTokensDetails)
public int getPromptTokenCount()
public void setPromptTokenCount(int promptTokenCount)
public int getCandidatesTokenCount()
public void setCandidatesTokenCount(int candidatesTokenCount)
public int getTotalTokenCount()
public void setTotalTokenCount(int totalTokenCount)
public int getCachedContentTokenCount()
public void setCachedContentTokenCount(int cachedContentTokenCount)
public int getThoughtsTokenCount()
public void setThoughtsTokenCount(int thoughtsTokenCount)
public List<GeminipTokensDetail> getPromptTokensDetails()
public void setPromptTokensDetails(List<GeminipTokensDetail> promptTokensDetails)
public List<GeminipTokensDetail> getCacheTokensDetails()
public void setCacheTokensDetails(List<GeminipTokensDetail> cacheTokensDetails)
Copyright © 2026. All rights reserved.