Class ContentFilterResultsBase
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.ContentFilterResultsBase
Information about the content filtering results.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanSet the error of thisContentFilterResultsBaseinstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theContentFilterResultsBase.getError()Get errorgetHate()Get hateGet profanityGet selfHarmGet sexualGet violenceinthashCode()Set the hate of thisContentFilterResultsBaseinstance and return the same instance.profanity(ContentFilterDetectedResult profanity) Set the profanity of thisContentFilterResultsBaseinstance and return the same instance.selfHarm(ContentFilterSeverityResult selfHarm) Set the selfHarm of thisContentFilterResultsBaseinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisContentFilterResultsBaseinstance.voidSet the error of thisContentFilterResultsBaseinstance.voidSet the hate of thisContentFilterResultsBaseinstance.voidsetProfanity(ContentFilterDetectedResult profanity) Set the profanity of thisContentFilterResultsBaseinstance.voidsetSelfHarm(ContentFilterSeverityResult selfHarm) Set the selfHarm of thisContentFilterResultsBaseinstance.voidsetSexual(ContentFilterSeverityResult sexual) Set the sexual of thisContentFilterResultsBaseinstance.voidsetViolence(ContentFilterSeverityResult violence) Set the violence of thisContentFilterResultsBaseinstance.sexual(ContentFilterSeverityResult sexual) Set the sexual of thisContentFilterResultsBaseinstance and return the same instance.toMap()Get the value of all properties of thisContentFilterResultsBaseinstance including unrecognized properties.toString()violence(ContentFilterSeverityResult violence) Set the violence of thisContentFilterResultsBaseinstance and return the same instance.
-
Constructor Details
-
ContentFilterResultsBase
public ContentFilterResultsBase()
-
-
Method Details
-
sexual
Set the sexual of thisContentFilterResultsBaseinstance and return the same instance.- Parameters:
sexual- The sexual of thisContentFilterResultsBase- Returns:
- The same instance of this
ContentFilterResultsBaseclass
-
getSexual
Get sexual- Returns:
- sexual The sexual of this
ContentFilterResultsBaseinstance.
-
setSexual
Set the sexual of thisContentFilterResultsBaseinstance.- Parameters:
sexual- The sexual of thisContentFilterResultsBase
-
violence
Set the violence of thisContentFilterResultsBaseinstance and return the same instance.- Parameters:
violence- The violence of thisContentFilterResultsBase- Returns:
- The same instance of this
ContentFilterResultsBaseclass
-
getViolence
Get violence- Returns:
- violence The violence of this
ContentFilterResultsBaseinstance.
-
setViolence
Set the violence of thisContentFilterResultsBaseinstance.- Parameters:
violence- The violence of thisContentFilterResultsBase
-
hate
Set the hate of thisContentFilterResultsBaseinstance and return the same instance.- Parameters:
hate- The hate of thisContentFilterResultsBase- Returns:
- The same instance of this
ContentFilterResultsBaseclass
-
getHate
Get hate- Returns:
- hate The hate of this
ContentFilterResultsBaseinstance.
-
setHate
Set the hate of thisContentFilterResultsBaseinstance.- Parameters:
hate- The hate of thisContentFilterResultsBase
-
selfHarm
Set the selfHarm of thisContentFilterResultsBaseinstance and return the same instance.- Parameters:
selfHarm- The selfHarm of thisContentFilterResultsBase- Returns:
- The same instance of this
ContentFilterResultsBaseclass
-
getSelfHarm
Get selfHarm- Returns:
- selfHarm The selfHarm of this
ContentFilterResultsBaseinstance.
-
setSelfHarm
Set the selfHarm of thisContentFilterResultsBaseinstance.- Parameters:
selfHarm- The selfHarm of thisContentFilterResultsBase
-
profanity
Set the profanity of thisContentFilterResultsBaseinstance and return the same instance.- Parameters:
profanity- The profanity of thisContentFilterResultsBase- Returns:
- The same instance of this
ContentFilterResultsBaseclass
-
getProfanity
Get profanity- Returns:
- profanity The profanity of this
ContentFilterResultsBaseinstance.
-
setProfanity
Set the profanity of thisContentFilterResultsBaseinstance.- Parameters:
profanity- The profanity of thisContentFilterResultsBase
-
error
Set the error of thisContentFilterResultsBaseinstance and return the same instance.- Parameters:
error- The error of thisContentFilterResultsBase- Returns:
- The same instance of this
ContentFilterResultsBaseclass
-
getError
Get error- Returns:
- error The error of this
ContentFilterResultsBaseinstance.
-
setError
Set the error of thisContentFilterResultsBaseinstance.- Parameters:
error- The error of thisContentFilterResultsBase
-
getCustomFieldNames
Get the names of the unrecognizable properties of theContentFilterResultsBase.- 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 thisContentFilterResultsBaseinstance.- 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 thisContentFilterResultsBaseinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisContentFilterResultsBaseinstance. 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
-
toMap()instead.