Package org.openapitools.client.model
Class EditMessageData
- java.lang.Object
-
- org.openapitools.client.model.EditMessageData
-
@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 EditMessageData extends Object
EditMessageData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEditMessageData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_HIGHLIGHT_CITATIONSstatic StringSERIALIZED_NAME_HIGHLIGHT_DELIMITERSstatic StringSERIALIZED_NAME_MESSAGE_SORT_ORDERstatic StringSERIALIZED_NAME_MODELstatic StringSERIALIZED_NAME_NEW_MESSAGE_CONTENTstatic StringSERIALIZED_NAME_STREAM_RESPONSEstatic StringSERIALIZED_NAME_TOPIC_ID
-
Constructor Summary
Constructors Constructor Description EditMessageData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EditMessageDataaddHighlightDelimitersItem(String highlightDelimitersItem)booleanequals(Object o)static EditMessageDatafromJson(String jsonString)Create an instance of EditMessageData given an JSON stringBooleangetHighlightCitations()Whether or not to highlight the citations in the response.List<String>getHighlightDelimiters()The delimiters to use for highlighting the citations.@NotNull IntegergetMessageSortOrder()The sort order of the message to edit.StringgetModel()The model to use for the assistant generative inferences.@NotNull StringgetNewMessageContent()The new content of the message to replace the old content with.BooleangetStreamResponse()Whether or not to stream the response.@NotNull @Valid UUIDgetTopicId()The id of the topic to edit the message at the given sort order for.inthashCode()EditMessageDatahighlightCitations(Boolean highlightCitations)EditMessageDatahighlightDelimiters(List<String> highlightDelimiters)EditMessageDatamessageSortOrder(Integer messageSortOrder)EditMessageDatamodel(String model)EditMessageDatanewMessageContent(String newMessageContent)voidsetHighlightCitations(Boolean highlightCitations)voidsetHighlightDelimiters(List<String> highlightDelimiters)voidsetMessageSortOrder(Integer messageSortOrder)voidsetModel(String model)voidsetNewMessageContent(String newMessageContent)voidsetStreamResponse(Boolean streamResponse)voidsetTopicId(UUID topicId)EditMessageDatastreamResponse(Boolean streamResponse)StringtoJson()Convert an instance of EditMessageData to an JSON stringEditMessageDatatopicId(UUID topicId)StringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_HIGHLIGHT_CITATIONS
public static final String SERIALIZED_NAME_HIGHLIGHT_CITATIONS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HIGHLIGHT_DELIMITERS
public static final String SERIALIZED_NAME_HIGHLIGHT_DELIMITERS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE_SORT_ORDER
public static final String SERIALIZED_NAME_MESSAGE_SORT_ORDER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MODEL
public static final String SERIALIZED_NAME_MODEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NEW_MESSAGE_CONTENT
public static final String SERIALIZED_NAME_NEW_MESSAGE_CONTENT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STREAM_RESPONSE
public static final String SERIALIZED_NAME_STREAM_RESPONSE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOPIC_ID
public static final String SERIALIZED_NAME_TOPIC_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
highlightCitations
public EditMessageData highlightCitations(Boolean highlightCitations)
-
getHighlightCitations
@Nullable public Boolean getHighlightCitations()
Whether or not to highlight the citations in the response. If this is set to true or not included, the citations will be highlighted. If this is set to false, the citations will not be highlighted. Default is true.- Returns:
- highlightCitations
-
setHighlightCitations
public void setHighlightCitations(Boolean highlightCitations)
-
highlightDelimiters
public EditMessageData highlightDelimiters(List<String> highlightDelimiters)
-
addHighlightDelimitersItem
public EditMessageData addHighlightDelimitersItem(String highlightDelimitersItem)
-
getHighlightDelimiters
@Nullable public List<String> getHighlightDelimiters()
The delimiters to use for highlighting the citations. If this is not included, the default delimiters will be used. Default is `[\".\", \"!\", \"?\", \"\\n\", \"\\t\", \",\"]`.- Returns:
- highlightDelimiters
-
messageSortOrder
public EditMessageData messageSortOrder(Integer messageSortOrder)
-
getMessageSortOrder
@Nonnull @NotNull public @NotNull Integer getMessageSortOrder()
The sort order of the message to edit.- Returns:
- messageSortOrder
-
setMessageSortOrder
public void setMessageSortOrder(Integer messageSortOrder)
-
model
public EditMessageData model(String model)
-
getModel
@Nullable public String getModel()
The model to use for the assistant generative inferences. This can be any model from the openrouter model list. If no model is provided, the gpt-3.5-turbo will be used.~- Returns:
- model
-
setModel
public void setModel(String model)
-
newMessageContent
public EditMessageData newMessageContent(String newMessageContent)
-
getNewMessageContent
@Nonnull @NotNull public @NotNull String getNewMessageContent()
The new content of the message to replace the old content with.- Returns:
- newMessageContent
-
setNewMessageContent
public void setNewMessageContent(String newMessageContent)
-
streamResponse
public EditMessageData streamResponse(Boolean streamResponse)
-
getStreamResponse
@Nullable public Boolean getStreamResponse()
Whether or not to stream the response. If this is set to true or not included, the response will be a stream. If this is set to false, the response will be a normal JSON response. Default is true.- Returns:
- streamResponse
-
setStreamResponse
public void setStreamResponse(Boolean streamResponse)
-
topicId
public EditMessageData topicId(UUID topicId)
-
getTopicId
@Nonnull @NotNull @Valid public @NotNull @Valid UUID getTopicId()
The id of the topic to edit the message at the given sort order for.- Returns:
- topicId
-
setTopicId
public void setTopicId(UUID topicId)
-
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 EditMessageData
-
fromJson
public static EditMessageData fromJson(String jsonString) throws IOException
Create an instance of EditMessageData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of EditMessageData
- Throws:
IOException- if the JSON string is invalid with respect to EditMessageData
-
toJson
public String toJson()
Convert an instance of EditMessageData to an JSON string- Returns:
- JSON string
-
-