Class UserChatMessageContentItem
java.lang.Object
com.sap.ai.sdk.orchestration.model.UserChatMessageContentItem
UserChatMessageContentItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static enumGets or Sets type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for UserChatMessageContentItem. -
Method Summary
Modifier and TypeMethodDescription_file(FileContent _file) Set the _file of thisUserChatMessageContentIteminstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newUserChatMessageContentIteminstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theUserChatMessageContentItem.getFile()Get _fileGet imageUrlgetText()Get textgetType()Get typeinthashCode()imageUrl(ImageContentUrl imageUrl) Set the imageUrl of thisUserChatMessageContentIteminstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisUserChatMessageContentIteminstance.voidsetFile(FileContent _file) Set the _file of thisUserChatMessageContentIteminstance.voidsetImageUrl(ImageContentUrl imageUrl) Set the imageUrl of thisUserChatMessageContentIteminstance.voidSet the text of thisUserChatMessageContentIteminstance.voidSet the type of thisUserChatMessageContentIteminstance.Set the text of thisUserChatMessageContentIteminstance and return the same instance.toMap()Get the value of all properties of thisUserChatMessageContentIteminstance including unrecognized properties.toString()Set the type of thisUserChatMessageContentIteminstance and return the same instance.
-
Constructor Details
-
UserChatMessageContentItem
protected UserChatMessageContentItem()Default constructor for UserChatMessageContentItem.
-
-
Method Details
-
type
Set the type of thisUserChatMessageContentIteminstance and return the same instance.- Parameters:
type- The type of thisUserChatMessageContentItem- Returns:
- The same instance of this
UserChatMessageContentItemclass
-
getType
Get type- Returns:
- type The type of this
UserChatMessageContentIteminstance.
-
setType
Set the type of thisUserChatMessageContentIteminstance.- Parameters:
type- The type of thisUserChatMessageContentItem
-
text
Set the text of thisUserChatMessageContentIteminstance and return the same instance.- Parameters:
text- The text of thisUserChatMessageContentItem- Returns:
- The same instance of this
UserChatMessageContentItemclass
-
getText
Get text- Returns:
- text The text of this
UserChatMessageContentIteminstance.
-
setText
Set the text of thisUserChatMessageContentIteminstance.- Parameters:
text- The text of thisUserChatMessageContentItem
-
imageUrl
Set the imageUrl of thisUserChatMessageContentIteminstance and return the same instance.- Parameters:
imageUrl- The imageUrl of thisUserChatMessageContentItem- Returns:
- The same instance of this
UserChatMessageContentItemclass
-
getImageUrl
Get imageUrl- Returns:
- imageUrl The imageUrl of this
UserChatMessageContentIteminstance.
-
setImageUrl
Set the imageUrl of thisUserChatMessageContentIteminstance.- Parameters:
imageUrl- The imageUrl of thisUserChatMessageContentItem
-
_file
Set the _file of thisUserChatMessageContentIteminstance and return the same instance.- Parameters:
_file- The _file of thisUserChatMessageContentItem- Returns:
- The same instance of this
UserChatMessageContentItemclass
-
getFile
Get _file- Returns:
- _file The _file of this
UserChatMessageContentIteminstance.
-
setFile
Set the _file of thisUserChatMessageContentIteminstance.- Parameters:
_file- The _file of thisUserChatMessageContentItem
-
getCustomFieldNames
Get the names of the unrecognizable properties of theUserChatMessageContentItem.- 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 thisUserChatMessageContentIteminstance.- 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 thisUserChatMessageContentIteminstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisUserChatMessageContentIteminstance. 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 newUserChatMessageContentIteminstance with all required arguments.
-
toMap()instead.