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