Class ChatCompletionTokenLogprobTopLogprobsInner
java.lang.Object
com.sap.ai.sdk.orchestration.model.ChatCompletionTokenLogprobTopLogprobsInner
ChatCompletionTokenLogprobTopLogprobsInner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for ChatCompletionTokenLogprobTopLogprobsInner. -
Method Summary
Modifier and TypeMethodDescriptionaddBytesItem(Integer bytesItem) Add one bytes instance to thisChatCompletionTokenLogprobTopLogprobsInner.Set the bytes of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newChatCompletionTokenLogprobTopLogprobsInnerinstance with all required arguments.booleangetBytes()A list of integers representing the UTF-8 bytes representation of the token.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theChatCompletionTokenLogprobTopLogprobsInner.The log probability of this token.getToken()The token.inthashCode()Set the logprob of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.voidSet the bytes of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.voidsetLogprob(Float logprob) Set the logprob of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.voidSet the token of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.Set the token of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.toMap()Get the value of all properties of thisChatCompletionTokenLogprobTopLogprobsInnerinstance including unrecognized properties.toString()
-
Constructor Details
-
ChatCompletionTokenLogprobTopLogprobsInner
protected ChatCompletionTokenLogprobTopLogprobsInner()Default constructor for ChatCompletionTokenLogprobTopLogprobsInner.
-
-
Method Details
-
token
Set the token of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.- Parameters:
token- The token.- Returns:
- The same instance of this
ChatCompletionTokenLogprobTopLogprobsInnerclass
-
getToken
The token.- Returns:
- token The token of this
ChatCompletionTokenLogprobTopLogprobsInnerinstance.
-
setToken
Set the token of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.- Parameters:
token- The token.
-
logprob
Set the logprob of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.- Parameters:
logprob- The log probability of this token.- Returns:
- The same instance of this
ChatCompletionTokenLogprobTopLogprobsInnerclass
-
getLogprob
The log probability of this token.- Returns:
- logprob The logprob of this
ChatCompletionTokenLogprobTopLogprobsInnerinstance.
-
setLogprob
Set the logprob of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.- Parameters:
logprob- The log probability of this token.
-
bytes
Set the bytes of thisChatCompletionTokenLogprobTopLogprobsInnerinstance and return the same instance.- Parameters:
bytes- A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are multi-byte.- Returns:
- The same instance of this
ChatCompletionTokenLogprobTopLogprobsInnerclass
-
addBytesItem
Add one bytes instance to thisChatCompletionTokenLogprobTopLogprobsInner.- Parameters:
bytesItem- The bytes that should be added- Returns:
- The same instance of type
ChatCompletionTokenLogprobTopLogprobsInner
-
getBytes
A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are multi-byte.- Returns:
- bytes The bytes of this
ChatCompletionTokenLogprobTopLogprobsInnerinstance.
-
setBytes
Set the bytes of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.- Parameters:
bytes- A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are multi-byte.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theChatCompletionTokenLogprobTopLogprobsInner.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisChatCompletionTokenLogprobTopLogprobsInnerinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisChatCompletionTokenLogprobTopLogprobsInnerinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisChatCompletionTokenLogprobTopLogprobsInnerinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newChatCompletionTokenLogprobTopLogprobsInnerinstance with all required arguments.
-
toMap()instead.