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