Class Conversation
-
- All Implemented Interfaces:
public final class Conversation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
Conversation.Builder
A builder for Conversation.
-
Method Summary
Modifier and Type Method Description final String
id()
The unique ID of the conversation. final Long
createdAt()
The time at which the conversation was created, measured in seconds since the Unix epoch. final JsonValue
_metadata()
Set of 16 key-value pairs that can be attached to an object. final JsonValue
_object_()
The object type, which is always conversation
.final JsonField<String>
_id()
Returns the raw JSON value of id. final JsonField<Long>
_createdAt()
Returns the raw JSON value of createdAt. final Map<String, JsonValue>
_additionalProperties()
final Conversation.Builder
toBuilder()
final Conversation
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Conversation.Builder
builder()
Returns a mutable builder for constructing an instance of Conversation. -
-
Method Detail
-
createdAt
final Long createdAt()
The time at which the conversation was created, measured in seconds since the Unix epoch.
-
_metadata
final JsonValue _metadata()
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
_object_
final JsonValue _object_()
The object type, which is always
conversation
.Expected to always return the following:
JsonValue.from("conversation")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<Long> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final Conversation.Builder toBuilder()
-
validate
final Conversation validate()
-
builder
final static Conversation.Builder builder()
Returns a mutable builder for constructing an instance of Conversation.
The following fields are required:
.id() .createdAt() .metadata()
-
-
-
-