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