Class UsageAudioSpeechesResponse.Data.Result
-
- All Implemented Interfaces:
public final class UsageAudioSpeechesResponse.Data.ResultThe aggregated completions usage details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceUsageAudioSpeechesResponse.Data.Result.VisitorAn interface that defines how to map each variant of Result to a value of type T.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageCompletionsResultThe aggregated completions usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageEmbeddingsResultThe aggregated embeddings usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageModerationsResultThe aggregated moderations usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageImagesResultThe aggregated images usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageAudioSpeechesResultThe aggregated audio speeches usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageAudioTranscriptionsResultThe aggregated audio transcriptions usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageVectorStoresResultThe aggregated vector stores usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResultThe aggregated code interpreter sessions usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageFileSearchesResultThe aggregated file search calls usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationUsageWebSearchesResultThe aggregated web search calls usage details of the specific time bucket.
public final classUsageAudioSpeechesResponse.Data.Result.OrganizationCostsResultThe aggregated costs details of the specific time bucket.
-
Method Summary
-
-
Method Detail
-
organizationUsageCompletions
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageCompletionsResult> organizationUsageCompletions()
The aggregated completions usage details of the specific time bucket.
-
organizationUsageEmbeddings
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageEmbeddingsResult> organizationUsageEmbeddings()
The aggregated embeddings usage details of the specific time bucket.
-
organizationUsageModerations
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageModerationsResult> organizationUsageModerations()
The aggregated moderations usage details of the specific time bucket.
-
organizationUsageImages
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageImagesResult> organizationUsageImages()
The aggregated images usage details of the specific time bucket.
-
organizationUsageAudioSpeeches
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageAudioSpeechesResult> organizationUsageAudioSpeeches()
The aggregated audio speeches usage details of the specific time bucket.
-
organizationUsageAudioTranscriptions
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageAudioTranscriptionsResult> organizationUsageAudioTranscriptions()
The aggregated audio transcriptions usage details of the specific time bucket.
-
organizationUsageVectorStores
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageVectorStoresResult> organizationUsageVectorStores()
The aggregated vector stores usage details of the specific time bucket.
-
organizationUsageCodeInterpreterSessions
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult> organizationUsageCodeInterpreterSessions()
The aggregated code interpreter sessions usage details of the specific time bucket.
-
organizationUsageFileSearches
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageFileSearchesResult> organizationUsageFileSearches()
The aggregated file search calls usage details of the specific time bucket.
-
organizationUsageWebSearches
final Optional<UsageAudioSpeechesResponse.Data.Result.OrganizationUsageWebSearchesResult> organizationUsageWebSearches()
The aggregated web search calls usage details of the specific time bucket.
-
organizationCosts
final Optional<UsageAudioSpeechesResponse.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 UsageAudioSpeechesResponse.Data.Result.OrganizationUsageCompletionsResult asOrganizationUsageCompletions()
The aggregated completions usage details of the specific time bucket.
-
asOrganizationUsageEmbeddings
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageEmbeddingsResult asOrganizationUsageEmbeddings()
The aggregated embeddings usage details of the specific time bucket.
-
asOrganizationUsageModerations
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageModerationsResult asOrganizationUsageModerations()
The aggregated moderations usage details of the specific time bucket.
-
asOrganizationUsageImages
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageImagesResult asOrganizationUsageImages()
The aggregated images usage details of the specific time bucket.
-
asOrganizationUsageAudioSpeeches
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageAudioSpeechesResult asOrganizationUsageAudioSpeeches()
The aggregated audio speeches usage details of the specific time bucket.
-
asOrganizationUsageAudioTranscriptions
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageAudioTranscriptionsResult asOrganizationUsageAudioTranscriptions()
The aggregated audio transcriptions usage details of the specific time bucket.
-
asOrganizationUsageVectorStores
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageVectorStoresResult asOrganizationUsageVectorStores()
The aggregated vector stores usage details of the specific time bucket.
-
asOrganizationUsageCodeInterpreterSessions
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult asOrganizationUsageCodeInterpreterSessions()
The aggregated code interpreter sessions usage details of the specific time bucket.
-
asOrganizationUsageFileSearches
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageFileSearchesResult asOrganizationUsageFileSearches()
The aggregated file search calls usage details of the specific time bucket.
-
asOrganizationUsageWebSearches
final UsageAudioSpeechesResponse.Data.Result.OrganizationUsageWebSearchesResult asOrganizationUsageWebSearches()
The aggregated web search calls usage details of the specific time bucket.
-
asOrganizationCosts
final UsageAudioSpeechesResponse.Data.Result.OrganizationCostsResult asOrganizationCosts()
The aggregated costs details of the specific time bucket.
-
accept
final <T extends Any> T accept(UsageAudioSpeechesResponse.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 UsageAudioSpeechesResponse.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 UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageCompletions(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageCompletionsResult organizationUsageCompletions)
The aggregated completions usage details of the specific time bucket.
-
ofOrganizationUsageEmbeddings
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageEmbeddings(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageEmbeddingsResult organizationUsageEmbeddings)
The aggregated embeddings usage details of the specific time bucket.
-
ofOrganizationUsageModerations
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageModerations(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageModerationsResult organizationUsageModerations)
The aggregated moderations usage details of the specific time bucket.
-
ofOrganizationUsageImages
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageImages(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageImagesResult organizationUsageImages)
The aggregated images usage details of the specific time bucket.
-
ofOrganizationUsageAudioSpeeches
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageAudioSpeeches(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageAudioSpeechesResult organizationUsageAudioSpeeches)
The aggregated audio speeches usage details of the specific time bucket.
-
ofOrganizationUsageAudioTranscriptions
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageAudioTranscriptions(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageAudioTranscriptionsResult organizationUsageAudioTranscriptions)
The aggregated audio transcriptions usage details of the specific time bucket.
-
ofOrganizationUsageVectorStores
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageVectorStores(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageVectorStoresResult organizationUsageVectorStores)
The aggregated vector stores usage details of the specific time bucket.
-
ofOrganizationUsageCodeInterpreterSessions
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageCodeInterpreterSessions(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageCodeInterpreterSessionsResult organizationUsageCodeInterpreterSessions)
The aggregated code interpreter sessions usage details of the specific time bucket.
-
ofOrganizationUsageFileSearches
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageFileSearches(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageFileSearchesResult organizationUsageFileSearches)
The aggregated file search calls usage details of the specific time bucket.
-
ofOrganizationUsageWebSearches
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationUsageWebSearches(UsageAudioSpeechesResponse.Data.Result.OrganizationUsageWebSearchesResult organizationUsageWebSearches)
The aggregated web search calls usage details of the specific time bucket.
-
ofOrganizationCosts
final static UsageAudioSpeechesResponse.Data.Result ofOrganizationCosts(UsageAudioSpeechesResponse.Data.Result.OrganizationCostsResult organizationCosts)
The aggregated costs details of the specific time bucket.
-
-
-
-