Class UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder
-
- All Implemented Interfaces:
public final class UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.BuilderA builder for OrganizationUsageModerationsResult.
-
-
Method Summary
-
-
Method Detail
-
inputTokens
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder inputTokens(Long inputTokens)
The aggregated number of input tokens used.
-
inputTokens
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder inputTokens(JsonField<Long> inputTokens)
Sets Builder.inputTokens to an arbitrary JSON value.
You should usually call Builder.inputTokens 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 UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder numModelRequests(Long numModelRequests)
The count of requests made to the model.
-
numModelRequests
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.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 UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.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.moderations.result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
apiKeyId
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder apiKeyId(String apiKeyId)
When
group_by=api_key_id, this field provides the API key ID of the grouped usage result.
-
apiKeyId
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder apiKeyId(Optional<String> apiKeyId)
Alias for calling Builder.apiKeyId with
apiKeyId.orElse(null).
-
apiKeyId
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.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 UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder model(String model)
When
group_by=model, this field provides the model name of the grouped usage result.
-
model
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder model(Optional<String> model)
Alias for calling Builder.model with
model.orElse(null).
-
model
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.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 UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder projectId(String projectId)
When
group_by=project_id, this field provides the project ID of the grouped usage result.
-
projectId
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder projectId(Optional<String> projectId)
Alias for calling Builder.projectId with
projectId.orElse(null).
-
projectId
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.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.
-
userId
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder userId(String userId)
When
group_by=user_id, this field provides the user ID of the grouped usage result.
-
userId
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.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 UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UsageImagesResponse.Data.Result.OrganizationUsageModerationsResult build()
Returns an immutable instance of OrganizationUsageModerationsResult.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.inputTokens() .numModelRequests()
-
-
-
-