Class UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder
-
- All Implemented Interfaces:
public final class UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.BuilderA builder for OrganizationUsageImagesResult.
-
-
Method Summary
-
-
Method Detail
-
images
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder images(Long images)
The number of images processed.
-
images
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder images(JsonField<Long> images)
Sets Builder.images to an arbitrary JSON value.
You should usually call Builder.images with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
numModelRequests
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder numModelRequests(Long numModelRequests)
The count of requests made to the model.
-
numModelRequests
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder numModelRequests(JsonField<Long> numModelRequests)
Sets Builder.numModelRequests to an arbitrary JSON value.
You should usually call Builder.numModelRequests with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder object_(JsonValue object_)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("organization.usage.images.result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
apiKeyId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder apiKeyId(String apiKeyId)
When
group_by=api_key_id, this field provides the API key ID of the grouped usage result.
-
apiKeyId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder apiKeyId(Optional<String> apiKeyId)
Alias for calling Builder.apiKeyId with
apiKeyId.orElse(null).
-
apiKeyId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder apiKeyId(JsonField<String> apiKeyId)
Sets Builder.apiKeyId to an arbitrary JSON value.
You should usually call Builder.apiKeyId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder model(String model)
When
group_by=model, this field provides the model name of the grouped usage result.
-
model
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder model(Optional<String> model)
Alias for calling Builder.model with
model.orElse(null).
-
model
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
projectId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder projectId(String projectId)
When
group_by=project_id, this field provides the project ID of the grouped usage result.
-
projectId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder projectId(Optional<String> projectId)
Alias for calling Builder.projectId with
projectId.orElse(null).
-
projectId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder projectId(JsonField<String> projectId)
Sets Builder.projectId to an arbitrary JSON value.
You should usually call Builder.projectId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
size
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder size(String size)
When
group_by=size, this field provides the image size of the grouped usage result.
-
size
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder size(Optional<String> size)
Alias for calling Builder.size with
size.orElse(null).
-
size
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder size(JsonField<String> size)
Sets Builder.size to an arbitrary JSON value.
You should usually call Builder.size with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder source(String source)
When
group_by=source, this field provides the source of the grouped usage result, possible values areimage.generation,image.edit,image.variation.
-
source
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder source(Optional<String> source)
Alias for calling Builder.source with
source.orElse(null).
-
source
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder source(JsonField<String> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder userId(String userId)
When
group_by=user_id, this field provides the user ID of the grouped usage result.
-
userId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder userId(JsonField<String> userId)
Sets Builder.userId to an arbitrary JSON value.
You should usually call Builder.userId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UsageEmbeddingsResponse.Data.Result.OrganizationUsageImagesResult build()
Returns an immutable instance of OrganizationUsageImagesResult.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.images() .numModelRequests()
-
-
-
-