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