Package org.openapitools.client.model
Class Message
- java.lang.Object
-
- org.openapitools.client.model.Message
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]", comments="Generator version: 7.4.0") public class Message extends Object
Message
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COMPLETION_TOKENSstatic StringSERIALIZED_NAME_CONTENTstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_DATASET_IDstatic StringSERIALIZED_NAME_DELETEDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_PROMPT_TOKENSstatic StringSERIALIZED_NAME_ROLEstatic StringSERIALIZED_NAME_SORT_ORDERstatic StringSERIALIZED_NAME_TOPIC_IDstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessagecompletionTokens(Integer completionTokens)Messagecontent(String content)MessagecreatedAt(OffsetDateTime createdAt)MessagedatasetId(UUID datasetId)Messagedeleted(Boolean deleted)booleanequals(Object o)static MessagefromJson(String jsonString)Create an instance of Message given an JSON stringIntegergetCompletionTokens()Get completionTokens@NotNull StringgetContent()Get content@NotNull @Valid OffsetDateTimegetCreatedAt()Get createdAt@NotNull @Valid UUIDgetDatasetId()Get datasetId@NotNull BooleangetDeleted()Get deleted@NotNull @Valid UUIDgetId()Get idIntegergetPromptTokens()Get promptTokens@NotNull StringgetRole()Get role@NotNull IntegergetSortOrder()Get sortOrder@NotNull @Valid UUIDgetTopicId()Get topicId@NotNull @Valid OffsetDateTimegetUpdatedAt()Get updatedAtinthashCode()Messageid(UUID id)MessagepromptTokens(Integer promptTokens)Messagerole(String role)voidsetCompletionTokens(Integer completionTokens)voidsetContent(String content)voidsetCreatedAt(OffsetDateTime createdAt)voidsetDatasetId(UUID datasetId)voidsetDeleted(Boolean deleted)voidsetId(UUID id)voidsetPromptTokens(Integer promptTokens)voidsetRole(String role)voidsetSortOrder(Integer sortOrder)voidsetTopicId(UUID topicId)voidsetUpdatedAt(OffsetDateTime updatedAt)MessagesortOrder(Integer sortOrder)StringtoJson()Convert an instance of Message to an JSON stringMessagetopicId(UUID topicId)StringtoString()MessageupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_COMPLETION_TOKENS
public static final String SERIALIZED_NAME_COMPLETION_TOKENS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONTENT
public static final String SERIALIZED_NAME_CONTENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATASET_ID
public static final String SERIALIZED_NAME_DATASET_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELETED
public static final String SERIALIZED_NAME_DELETED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PROMPT_TOKENS
public static final String SERIALIZED_NAME_PROMPT_TOKENS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ROLE
public static final String SERIALIZED_NAME_ROLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SORT_ORDER
public static final String SERIALIZED_NAME_SORT_ORDER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOPIC_ID
public static final String SERIALIZED_NAME_TOPIC_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCompletionTokens
@Nullable public Integer getCompletionTokens()
Get completionTokens- Returns:
- completionTokens
-
setCompletionTokens
public void setCompletionTokens(Integer completionTokens)
-
setContent
public void setContent(String content)
-
createdAt
public Message createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime getCreatedAt()
Get createdAt- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
getDatasetId
@Nonnull @NotNull @Valid public @NotNull @Valid UUID getDatasetId()
Get datasetId- Returns:
- datasetId
-
setDatasetId
public void setDatasetId(UUID datasetId)
-
setDeleted
public void setDeleted(Boolean deleted)
-
setId
public void setId(UUID id)
-
setPromptTokens
public void setPromptTokens(Integer promptTokens)
-
setRole
public void setRole(String role)
-
getSortOrder
@Nonnull @NotNull public @NotNull Integer getSortOrder()
Get sortOrder- Returns:
- sortOrder
-
setSortOrder
public void setSortOrder(Integer sortOrder)
-
getTopicId
@Nonnull @NotNull @Valid public @NotNull @Valid UUID getTopicId()
Get topicId- Returns:
- topicId
-
setTopicId
public void setTopicId(UUID topicId)
-
updatedAt
public Message updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nonnull @NotNull @Valid public @NotNull @Valid OffsetDateTime getUpdatedAt()
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Message
-
fromJson
public static Message fromJson(String jsonString) throws IOException
Create an instance of Message given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Message
- Throws:
IOException- if the JSON string is invalid with respect to Message
-
toJson
public String toJson()
Convert an instance of Message to an JSON string- Returns:
- JSON string
-
-