Class PromptFilterResult
java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.generated.model.PromptFilterResult
Content filtering results for a single prompt in the request.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncontentFilterResults(ContentFilterPromptResults contentFilterResults) Set the contentFilterResults of thisPromptFilterResultinstance and return the same instance.booleanGet contentFilterResultsgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePromptFilterResult.Get promptIndexinthashCode()promptIndex(Integer promptIndex) Set the promptIndex of thisPromptFilterResultinstance and return the same instance.voidsetContentFilterResults(ContentFilterPromptResults contentFilterResults) Set the contentFilterResults of thisPromptFilterResultinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPromptFilterResultinstance.voidsetPromptIndex(Integer promptIndex) Set the promptIndex of thisPromptFilterResultinstance.toMap()Get the value of all properties of thisPromptFilterResultinstance including unrecognized properties.toString()
-
Constructor Details
-
PromptFilterResult
public PromptFilterResult()
-
-
Method Details
-
promptIndex
Set the promptIndex of thisPromptFilterResultinstance and return the same instance.- Parameters:
promptIndex- The promptIndex of thisPromptFilterResult- Returns:
- The same instance of this
PromptFilterResultclass
-
getPromptIndex
Get promptIndex- Returns:
- promptIndex The promptIndex of this
PromptFilterResultinstance.
-
setPromptIndex
Set the promptIndex of thisPromptFilterResultinstance.- Parameters:
promptIndex- The promptIndex of thisPromptFilterResult
-
contentFilterResults
@Nonnull public PromptFilterResult contentFilterResults(@Nullable ContentFilterPromptResults contentFilterResults) Set the contentFilterResults of thisPromptFilterResultinstance and return the same instance.- Parameters:
contentFilterResults- The contentFilterResults of thisPromptFilterResult- Returns:
- The same instance of this
PromptFilterResultclass
-
getContentFilterResults
Get contentFilterResults- Returns:
- contentFilterResults The contentFilterResults of this
PromptFilterResultinstance.
-
setContentFilterResults
Set the contentFilterResults of thisPromptFilterResultinstance.- Parameters:
contentFilterResults- The contentFilterResults of thisPromptFilterResult
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePromptFilterResult.- 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 thisPromptFilterResultinstance.- 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 thisPromptFilterResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPromptFilterResultinstance. 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.