Class UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder
-
- All Implemented Interfaces:
public final class UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.BuilderA builder for OrganizationUsageCompletionsResult.
-
-
Method Summary
-
-
Method Detail
-
inputTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder inputTokens(Long inputTokens)
The aggregated number of text input tokens used, including cached tokens. For customers subscribe to scale tier, this includes scale tier tokens.
-
inputTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.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 UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder numModelRequests(Long numModelRequests)
The count of requests made to the model.
-
numModelRequests
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.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 UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.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.completions.result")This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder outputTokens(Long outputTokens)
The aggregated number of text output tokens used. For customers subscribe to scale tier, this includes scale tier tokens.
-
outputTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder outputTokens(JsonField<Long> outputTokens)
Sets Builder.outputTokens to an arbitrary JSON value.
You should usually call Builder.outputTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
apiKeyId
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder apiKeyId(String apiKeyId)
When
group_by=api_key_id, this field provides the API key ID of the grouped usage result.
-
apiKeyId
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder apiKeyId(Optional<String> apiKeyId)
Alias for calling Builder.apiKeyId with
apiKeyId.orElse(null).
-
apiKeyId
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.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.
-
batch
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder batch(Boolean batch)
When
group_by=batch, this field tells whether the grouped usage result is batch or not.
-
batch
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder batch(Boolean batch)
Alias for Builder.batch.
This unboxed primitive overload exists for backwards compatibility.
-
batch
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder batch(Optional<Boolean> batch)
Alias for calling Builder.batch with
batch.orElse(null).
-
batch
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder batch(JsonField<Boolean> batch)
Sets Builder.batch to an arbitrary JSON value.
You should usually call Builder.batch with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputAudioTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder inputAudioTokens(Long inputAudioTokens)
The aggregated number of audio input tokens used, including cached tokens.
-
inputAudioTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder inputAudioTokens(JsonField<Long> inputAudioTokens)
Sets Builder.inputAudioTokens to an arbitrary JSON value.
You should usually call Builder.inputAudioTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputCachedTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder inputCachedTokens(Long inputCachedTokens)
The aggregated number of text input tokens that has been cached from previous requests. For customers subscribe to scale tier, this includes scale tier tokens.
-
inputCachedTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder inputCachedTokens(JsonField<Long> inputCachedTokens)
Sets Builder.inputCachedTokens to an arbitrary JSON value.
You should usually call Builder.inputCachedTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder model(String model)
When
group_by=model, this field provides the model name of the grouped usage result.
-
model
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder model(Optional<String> model)
Alias for calling Builder.model with
model.orElse(null).
-
model
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.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.
-
outputAudioTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder outputAudioTokens(Long outputAudioTokens)
The aggregated number of audio output tokens used.
-
outputAudioTokens
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder outputAudioTokens(JsonField<Long> outputAudioTokens)
Sets Builder.outputAudioTokens to an arbitrary JSON value.
You should usually call Builder.outputAudioTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
projectId
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder projectId(String projectId)
When
group_by=project_id, this field provides the project ID of the grouped usage result.
-
projectId
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder projectId(Optional<String> projectId)
Alias for calling Builder.projectId with
projectId.orElse(null).
-
projectId
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.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.
-
serviceTier
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder serviceTier(String serviceTier)
When
group_by=service_tier, this field provides the service tier of the grouped usage result.
-
serviceTier
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder serviceTier(Optional<String> serviceTier)
Alias for calling Builder.serviceTier with
serviceTier.orElse(null).
-
serviceTier
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder serviceTier(JsonField<String> serviceTier)
Sets Builder.serviceTier to an arbitrary JSON value.
You should usually call Builder.serviceTier 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 UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder userId(String userId)
When
group_by=user_id, this field provides the user ID of the grouped usage result.
-
userId
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder userId(Optional<String> userId)
Alias for calling Builder.userId with
userId.orElse(null).
-
userId
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.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 UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UsageWebSearchCallsResponse.Data.Result.OrganizationUsageCompletionsResult build()
Returns an immutable instance of OrganizationUsageCompletionsResult.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.inputTokens() .numModelRequests() .outputTokens()
-
-
-
-