Class TranscriptionTextDoneEvent.Usage.Builder
-
- All Implemented Interfaces:
public final class TranscriptionTextDoneEvent.Usage.Builder
A builder for Usage.
-
-
Method Summary
-
-
Method Detail
-
inputTokens
final TranscriptionTextDoneEvent.Usage.Builder inputTokens(Long inputTokens)
Number of input tokens billed for this request.
-
inputTokens
final TranscriptionTextDoneEvent.Usage.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.
-
outputTokens
final TranscriptionTextDoneEvent.Usage.Builder outputTokens(Long outputTokens)
Number of output tokens generated.
-
outputTokens
final TranscriptionTextDoneEvent.Usage.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.
-
totalTokens
final TranscriptionTextDoneEvent.Usage.Builder totalTokens(Long totalTokens)
Total number of tokens used (input + output).
-
totalTokens
final TranscriptionTextDoneEvent.Usage.Builder totalTokens(JsonField<Long> totalTokens)
Sets Builder.totalTokens to an arbitrary JSON value.
You should usually call Builder.totalTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final TranscriptionTextDoneEvent.Usage.Builder type(JsonValue type)
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("tokens")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputTokenDetails
final TranscriptionTextDoneEvent.Usage.Builder inputTokenDetails(TranscriptionTextDoneEvent.Usage.InputTokenDetails inputTokenDetails)
Details about the input tokens billed for this request.
-
inputTokenDetails
final TranscriptionTextDoneEvent.Usage.Builder inputTokenDetails(JsonField<TranscriptionTextDoneEvent.Usage.InputTokenDetails> inputTokenDetails)
Sets Builder.inputTokenDetails to an arbitrary JSON value.
You should usually call Builder.inputTokenDetails with a well-typed InputTokenDetails value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TranscriptionTextDoneEvent.Usage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TranscriptionTextDoneEvent.Usage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TranscriptionTextDoneEvent.Usage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TranscriptionTextDoneEvent.Usage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TranscriptionTextDoneEvent.Usage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TranscriptionTextDoneEvent.Usage build()
Returns an immutable instance of Usage.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.inputTokens() .outputTokens() .totalTokens()
-
-
-
-