Class UsageWebSearchCallsResponse.Data.Result.OrganizationUsageImagesResult
-
- All Implemented Interfaces:
public final class UsageWebSearchCallsResponse.Data.Result.OrganizationUsageImagesResultThe aggregated images usage details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageWebSearchCallsResponse.Data.Result.OrganizationUsageImagesResult.BuilderA builder for OrganizationUsageImagesResult.
-
Method Summary
Modifier and Type Method Description final Longimages()The number of images 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.images.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>size()When group_by=size, this field provides the image size of the grouped usage result.final Optional<String>source()When group_by=source, this field provides the source of the grouped usage result, possible values areimage.generation,image.edit,image.variation.final Optional<String>userId()When group_by=user_id, this field provides the user ID of the grouped usage result.final JsonField<Long>_images()Returns the raw JSON value of images. 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>_size()Returns the raw JSON value of size. final JsonField<String>_source()Returns the raw JSON value of source. final JsonField<String>_userId()Returns the raw JSON value of userId. final Map<String, JsonValue>_additionalProperties()final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageImagesResult.BuildertoBuilder()final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageImagesResultvalidate()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.OrganizationUsageImagesResult.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationUsageImagesResult. -
-
Method Detail
-
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.images.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.
-
size
final Optional<String> size()
When
group_by=size, this field provides the image size of the grouped usage result.
-
source
final Optional<String> source()
When
group_by=source, this field provides the source of the grouped usage result, possible values areimage.generation,image.edit,image.variation.
-
userId
final Optional<String> userId()
When
group_by=user_id, this field provides the user ID of the grouped usage result.
-
_images
final JsonField<Long> _images()
Returns the raw JSON value of images.
Unlike images, 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.
-
_size
final JsonField<String> _size()
Returns the raw JSON value of size.
Unlike size, this method doesn't throw if the JSON field has an unexpected type.
-
_source
final JsonField<String> _source()
Returns the raw JSON value of source.
Unlike source, 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.OrganizationUsageImagesResult.Builder toBuilder()
-
validate
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageImagesResult 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.OrganizationUsageImagesResult.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationUsageImagesResult.
The following fields are required:
.images() .numModelRequests()
-
-
-
-