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