Class UsageCostsResponse.Data.Result
-
- All Implemented Interfaces:
public final class UsageCostsResponse.Data.ResultThe aggregated completions usage details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceUsageCostsResponse.Data.Result.VisitorAn interface that defines how to map each variant of Result to a value of type T.
public final classUsageCostsResponse.Data.Result.OrganizationUsageCompletionsResultThe aggregated completions usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageEmbeddingsResultThe aggregated embeddings usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageModerationsResultThe aggregated moderations usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageImagesResultThe aggregated images usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageAudioSpeechesResultThe aggregated audio speeches usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageAudioTranscriptionsResultThe aggregated audio transcriptions usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageVectorStoresResultThe aggregated vector stores usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResultThe aggregated code interpreter sessions usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageFileSearchesResultThe aggregated file search calls usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationUsageWebSearchesResultThe aggregated web search calls usage details of the specific time bucket.
public final classUsageCostsResponse.Data.Result.OrganizationCostsResultThe aggregated costs details of the specific time bucket.
-
Method Summary
-
-
Method Detail
-
organizationUsageCompletions
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageCompletionsResult> organizationUsageCompletions()
The aggregated completions usage details of the specific time bucket.
-
organizationUsageEmbeddings
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageEmbeddingsResult> organizationUsageEmbeddings()
The aggregated embeddings usage details of the specific time bucket.
-
organizationUsageModerations
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageModerationsResult> organizationUsageModerations()
The aggregated moderations usage details of the specific time bucket.
-
organizationUsageImages
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageImagesResult> organizationUsageImages()
The aggregated images usage details of the specific time bucket.
-
organizationUsageAudioSpeeches
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageAudioSpeechesResult> organizationUsageAudioSpeeches()
The aggregated audio speeches usage details of the specific time bucket.
-
organizationUsageAudioTranscriptions
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageAudioTranscriptionsResult> organizationUsageAudioTranscriptions()
The aggregated audio transcriptions usage details of the specific time bucket.
-
organizationUsageVectorStores
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageVectorStoresResult> organizationUsageVectorStores()
The aggregated vector stores usage details of the specific time bucket.
-
organizationUsageCodeInterpreterSessions
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult> organizationUsageCodeInterpreterSessions()
The aggregated code interpreter sessions usage details of the specific time bucket.
-
organizationUsageFileSearches
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageFileSearchesResult> organizationUsageFileSearches()
The aggregated file search calls usage details of the specific time bucket.
-
organizationUsageWebSearches
final Optional<UsageCostsResponse.Data.Result.OrganizationUsageWebSearchesResult> organizationUsageWebSearches()
The aggregated web search calls usage details of the specific time bucket.
-
organizationCosts
final Optional<UsageCostsResponse.Data.Result.OrganizationCostsResult> organizationCosts()
The aggregated costs details of the specific time bucket.
-
isOrganizationUsageCompletions
final Boolean isOrganizationUsageCompletions()
-
isOrganizationUsageEmbeddings
final Boolean isOrganizationUsageEmbeddings()
-
isOrganizationUsageModerations
final Boolean isOrganizationUsageModerations()
-
isOrganizationUsageImages
final Boolean isOrganizationUsageImages()
-
isOrganizationUsageAudioSpeeches
final Boolean isOrganizationUsageAudioSpeeches()
-
isOrganizationUsageAudioTranscriptions
final Boolean isOrganizationUsageAudioTranscriptions()
-
isOrganizationUsageVectorStores
final Boolean isOrganizationUsageVectorStores()
-
isOrganizationUsageCodeInterpreterSessions
final Boolean isOrganizationUsageCodeInterpreterSessions()
-
isOrganizationUsageFileSearches
final Boolean isOrganizationUsageFileSearches()
-
isOrganizationUsageWebSearches
final Boolean isOrganizationUsageWebSearches()
-
isOrganizationCosts
final Boolean isOrganizationCosts()
-
asOrganizationUsageCompletions
final UsageCostsResponse.Data.Result.OrganizationUsageCompletionsResult asOrganizationUsageCompletions()
The aggregated completions usage details of the specific time bucket.
-
asOrganizationUsageEmbeddings
final UsageCostsResponse.Data.Result.OrganizationUsageEmbeddingsResult asOrganizationUsageEmbeddings()
The aggregated embeddings usage details of the specific time bucket.
-
asOrganizationUsageModerations
final UsageCostsResponse.Data.Result.OrganizationUsageModerationsResult asOrganizationUsageModerations()
The aggregated moderations usage details of the specific time bucket.
-
asOrganizationUsageImages
final UsageCostsResponse.Data.Result.OrganizationUsageImagesResult asOrganizationUsageImages()
The aggregated images usage details of the specific time bucket.
-
asOrganizationUsageAudioSpeeches
final UsageCostsResponse.Data.Result.OrganizationUsageAudioSpeechesResult asOrganizationUsageAudioSpeeches()
The aggregated audio speeches usage details of the specific time bucket.
-
asOrganizationUsageAudioTranscriptions
final UsageCostsResponse.Data.Result.OrganizationUsageAudioTranscriptionsResult asOrganizationUsageAudioTranscriptions()
The aggregated audio transcriptions usage details of the specific time bucket.
-
asOrganizationUsageVectorStores
final UsageCostsResponse.Data.Result.OrganizationUsageVectorStoresResult asOrganizationUsageVectorStores()
The aggregated vector stores usage details of the specific time bucket.
-
asOrganizationUsageCodeInterpreterSessions
final UsageCostsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult asOrganizationUsageCodeInterpreterSessions()
The aggregated code interpreter sessions usage details of the specific time bucket.
-
asOrganizationUsageFileSearches
final UsageCostsResponse.Data.Result.OrganizationUsageFileSearchesResult asOrganizationUsageFileSearches()
The aggregated file search calls usage details of the specific time bucket.
-
asOrganizationUsageWebSearches
final UsageCostsResponse.Data.Result.OrganizationUsageWebSearchesResult asOrganizationUsageWebSearches()
The aggregated web search calls usage details of the specific time bucket.
-
asOrganizationCosts
final UsageCostsResponse.Data.Result.OrganizationCostsResult asOrganizationCosts()
The aggregated costs details of the specific time bucket.
-
accept
final <T extends Any> T accept(UsageCostsResponse.Data.Result.Visitor<T> visitor)
Maps this instance's current variant to a value of type T using the given visitor.
Note that this method is not forwards compatible with new variants from the API, unless visitor overrides Visitor.unknown. To handle variants not known to this version of the SDK gracefully, consider overriding Visitor.unknown:
import com.openai.core.JsonValue; import java.util.Optional; Optional<String> result = result.accept(new Result.Visitor<Optional<String>>() { @Override public Optional<String> visitOrganizationUsageCompletions(OrganizationUsageCompletionsResult organizationUsageCompletions) { return Optional.of(organizationUsageCompletions.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final UsageCostsResponse.Data.Result validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
ofOrganizationUsageCompletions
final static UsageCostsResponse.Data.Result ofOrganizationUsageCompletions(UsageCostsResponse.Data.Result.OrganizationUsageCompletionsResult organizationUsageCompletions)
The aggregated completions usage details of the specific time bucket.
-
ofOrganizationUsageEmbeddings
final static UsageCostsResponse.Data.Result ofOrganizationUsageEmbeddings(UsageCostsResponse.Data.Result.OrganizationUsageEmbeddingsResult organizationUsageEmbeddings)
The aggregated embeddings usage details of the specific time bucket.
-
ofOrganizationUsageModerations
final static UsageCostsResponse.Data.Result ofOrganizationUsageModerations(UsageCostsResponse.Data.Result.OrganizationUsageModerationsResult organizationUsageModerations)
The aggregated moderations usage details of the specific time bucket.
-
ofOrganizationUsageImages
final static UsageCostsResponse.Data.Result ofOrganizationUsageImages(UsageCostsResponse.Data.Result.OrganizationUsageImagesResult organizationUsageImages)
The aggregated images usage details of the specific time bucket.
-
ofOrganizationUsageAudioSpeeches
final static UsageCostsResponse.Data.Result ofOrganizationUsageAudioSpeeches(UsageCostsResponse.Data.Result.OrganizationUsageAudioSpeechesResult organizationUsageAudioSpeeches)
The aggregated audio speeches usage details of the specific time bucket.
-
ofOrganizationUsageAudioTranscriptions
final static UsageCostsResponse.Data.Result ofOrganizationUsageAudioTranscriptions(UsageCostsResponse.Data.Result.OrganizationUsageAudioTranscriptionsResult organizationUsageAudioTranscriptions)
The aggregated audio transcriptions usage details of the specific time bucket.
-
ofOrganizationUsageVectorStores
final static UsageCostsResponse.Data.Result ofOrganizationUsageVectorStores(UsageCostsResponse.Data.Result.OrganizationUsageVectorStoresResult organizationUsageVectorStores)
The aggregated vector stores usage details of the specific time bucket.
-
ofOrganizationUsageCodeInterpreterSessions
final static UsageCostsResponse.Data.Result ofOrganizationUsageCodeInterpreterSessions(UsageCostsResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult organizationUsageCodeInterpreterSessions)
The aggregated code interpreter sessions usage details of the specific time bucket.
-
ofOrganizationUsageFileSearches
final static UsageCostsResponse.Data.Result ofOrganizationUsageFileSearches(UsageCostsResponse.Data.Result.OrganizationUsageFileSearchesResult organizationUsageFileSearches)
The aggregated file search calls usage details of the specific time bucket.
-
ofOrganizationUsageWebSearches
final static UsageCostsResponse.Data.Result ofOrganizationUsageWebSearches(UsageCostsResponse.Data.Result.OrganizationUsageWebSearchesResult organizationUsageWebSearches)
The aggregated web search calls usage details of the specific time bucket.
-
ofOrganizationCosts
final static UsageCostsResponse.Data.Result ofOrganizationCosts(UsageCostsResponse.Data.Result.OrganizationCostsResult organizationCosts)
The aggregated costs details of the specific time bucket.
-
-
-
-