Class UserChatMessage
java.lang.Object
com.sap.ai.sdk.orchestration.model.UserChatMessage
- All Implemented Interfaces:
ChatMessage
UserChatMessage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumGets or Sets role -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for UserChatMessage. -
Method Summary
Modifier and TypeMethodDescriptioncontent(UserChatMessageContent content) Set the content of thisUserChatMessageinstance and return the same instance.static UserChatMessage.Buildercreate()Create a type-safe, fluent-api builder object to construct a newUserChatMessageinstance with all required arguments.booleanGet contentgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theUserChatMessage.getRole()Get roleinthashCode()role(UserChatMessage.RoleEnum role) Set the role of thisUserChatMessageinstance and return the same instance.voidsetContent(UserChatMessageContent content) Set the content of thisUserChatMessageinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisUserChatMessageinstance.voidSet the role of thisUserChatMessageinstance.toMap()Get the value of all properties of thisUserChatMessageinstance including unrecognized properties.toString()
-
Constructor Details
-
UserChatMessage
protected UserChatMessage()Default constructor for UserChatMessage.
-
-
Method Details
-
content
Set the content of thisUserChatMessageinstance and return the same instance.- Parameters:
content- The content of thisUserChatMessage- Returns:
- The same instance of this
UserChatMessageclass
-
getContent
Get content- Returns:
- content The content of this
UserChatMessageinstance.
-
setContent
Set the content of thisUserChatMessageinstance.- Parameters:
content- The content of thisUserChatMessage
-
role
Set the role of thisUserChatMessageinstance and return the same instance.- Parameters:
role- The role of thisUserChatMessage- Returns:
- The same instance of this
UserChatMessageclass
-
getRole
Get role- Returns:
- role The role of this
UserChatMessageinstance.
-
setRole
Set the role of thisUserChatMessageinstance.- Parameters:
role- The role of thisUserChatMessage
-
getCustomFieldNames
Get the names of the unrecognizable properties of theUserChatMessage.- 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 thisUserChatMessageinstance.- 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 thisUserChatMessageinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisUserChatMessageinstance. 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 newUserChatMessageinstance with all required arguments.
-
toMap()instead.