Class ResponseOutputText.Logprob.Builder
-
- All Implemented Interfaces:
public final class ResponseOutputText.Logprob.Builder
A builder for Logprob.
-
-
Method Summary
-
-
Method Detail
-
token
final ResponseOutputText.Logprob.Builder token(String token)
-
token
final ResponseOutputText.Logprob.Builder token(JsonField<String> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
bytes
final ResponseOutputText.Logprob.Builder bytes(List<Long> bytes)
-
bytes
final ResponseOutputText.Logprob.Builder bytes(JsonField<List<Long>> bytes)
Sets Builder.bytes to an arbitrary JSON value.
You should usually call Builder.bytes with a well-typed
List<Long>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addByte
final ResponseOutputText.Logprob.Builder addByte(Long byte_)
-
logprob
final ResponseOutputText.Logprob.Builder logprob(Double logprob)
-
logprob
final ResponseOutputText.Logprob.Builder logprob(JsonField<Double> logprob)
Sets Builder.logprob to an arbitrary JSON value.
You should usually call Builder.logprob with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
topLogprobs
final ResponseOutputText.Logprob.Builder topLogprobs(List<ResponseOutputText.Logprob.TopLogprob> topLogprobs)
-
topLogprobs
final ResponseOutputText.Logprob.Builder topLogprobs(JsonField<List<ResponseOutputText.Logprob.TopLogprob>> topLogprobs)
Sets Builder.topLogprobs to an arbitrary JSON value.
You should usually call Builder.topLogprobs with a well-typed
List<TopLogprob>
value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTopLogprob
final ResponseOutputText.Logprob.Builder addTopLogprob(ResponseOutputText.Logprob.TopLogprob topLogprob)
Adds a single TopLogprob to topLogprobs.
-
additionalProperties
final ResponseOutputText.Logprob.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseOutputText.Logprob.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseOutputText.Logprob.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseOutputText.Logprob.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseOutputText.Logprob.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseOutputText.Logprob build()
Returns an immutable instance of Logprob.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.token() .bytes() .logprob() .topLogprobs()
-
-
-
-