Class UsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResult
-
- All Implemented Interfaces:
public final class UsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResultThe aggregated audio speeches usage details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResult.BuilderA builder for OrganizationUsageAudioSpeechesResult.
-
Method Summary
Modifier and Type Method Description final Longcharacters()The number of characters processed. final LongnumModelRequests()The count of requests made to the model. final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.usage.audio_speeches.result")final Optional<String>apiKeyId()When group_by=api_key_id, this field provides the API key ID of the grouped usage result.final Optional<String>model()When group_by=model, this field provides the model name of the grouped usage result.final Optional<String>projectId()When group_by=project_id, this field provides the project ID of the grouped usage result.final Optional<String>userId()When group_by=user_id, this field provides the user ID of the grouped usage result.final JsonField<Long>_characters()Returns the raw JSON value of characters. final JsonField<Long>_numModelRequests()Returns the raw JSON value of numModelRequests. final JsonField<String>_apiKeyId()Returns the raw JSON value of apiKeyId. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_userId()Returns the raw JSON value of userId. final Map<String, JsonValue>_additionalProperties()final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResult.BuildertoBuilder()final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResultvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResult.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationUsageAudioSpeechesResult. -
-
Method Detail
-
characters
final Long characters()
The number of characters processed.
-
numModelRequests
final Long numModelRequests()
The count of requests made to the model.
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("organization.usage.audio_speeches.result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
apiKeyId
final Optional<String> apiKeyId()
When
group_by=api_key_id, this field provides the API key ID of the grouped usage result.
-
model
final Optional<String> model()
When
group_by=model, this field provides the model name of the grouped usage result.
-
projectId
final Optional<String> projectId()
When
group_by=project_id, this field provides the project ID of the grouped usage result.
-
userId
final Optional<String> userId()
When
group_by=user_id, this field provides the user ID of the grouped usage result.
-
_characters
final JsonField<Long> _characters()
Returns the raw JSON value of characters.
Unlike characters, this method doesn't throw if the JSON field has an unexpected type.
-
_numModelRequests
final JsonField<Long> _numModelRequests()
Returns the raw JSON value of numModelRequests.
Unlike numModelRequests, this method doesn't throw if the JSON field has an unexpected type.
-
_apiKeyId
final JsonField<String> _apiKeyId()
Returns the raw JSON value of apiKeyId.
Unlike apiKeyId, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_userId
final JsonField<String> _userId()
Returns the raw JSON value of userId.
Unlike userId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResult.Builder toBuilder()
-
validate
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResult 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.
-
builder
final static UsageWebSearchCallsResponse.Data.Result.OrganizationUsageAudioSpeechesResult.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationUsageAudioSpeechesResult.
The following fields are required:
.characters() .numModelRequests()
-
-
-
-