Package com.sap.ai.sdk.grounding.model
Class MessageResponse
java.lang.Object
com.sap.ai.sdk.grounding.model.MessageResponse
MessageResponse
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for MessageResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageResponsecreate()Create a newMessageResponseinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theMessageResponse.Get messageinthashCode()Set the message of thisMessageResponseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisMessageResponseinstance.voidsetMessage(String message) Set the message of thisMessageResponseinstance.toMap()Get the value of all properties of thisMessageResponseinstance including unrecognized properties.toString()
-
Constructor Details
-
MessageResponse
protected MessageResponse()Default constructor for MessageResponse.
-
-
Method Details
-
message
Set the message of thisMessageResponseinstance and return the same instance.- Parameters:
message- The message of thisMessageResponse- Returns:
- The same instance of this
MessageResponseclass
-
getMessage
Get message- Returns:
- message The message of this
MessageResponseinstance.
-
setMessage
Set the message of thisMessageResponseinstance.- Parameters:
message- The message of thisMessageResponse
-
getCustomFieldNames
Get the names of the unrecognizable properties of theMessageResponse.- 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 thisMessageResponseinstance.- 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 thisMessageResponseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisMessageResponseinstance. 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 newMessageResponseinstance. No arguments are required.
-
toMap()instead.