@Generated(value="OracleSDKGenerator", comments="API Version: 20231130") public final class GenericChatResponse extends BaseChatResponse
The response for a chat conversation.
Note: Objects should always be created or deserialized using the GenericChatResponse.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the GenericChatResponse.Builder
, which maintain a
set of all explicitly set fields called GenericChatResponse.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
GenericChatResponse.Builder |
BaseChatResponse.ApiFormat
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
GenericChatResponse(Date timeCreated,
List<ChatChoice> choices)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static GenericChatResponse.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<ChatChoice> |
getChoices()
A list of generated texts.
|
Date |
getTimeCreated()
The Unix timestamp (in seconds) of when the response text was generated.
|
int |
hashCode() |
GenericChatResponse.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public GenericChatResponse(Date timeCreated, List<ChatChoice> choices)
public static GenericChatResponse.Builder builder()
Create a new builder.
public GenericChatResponse.Builder toBuilder()
public Date getTimeCreated()
The Unix timestamp (in seconds) of when the response text was generated.
public List<ChatChoice> getChoices()
A list of generated texts. Can be more than one if n is greater than 1.
public String toString()
toString
in class BaseChatResponse
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class BaseChatResponse
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class BaseChatResponse
public int hashCode()
hashCode
in class BaseChatResponse
Copyright © 2016–2024. All rights reserved.