Package com.sap.ai.sdk.grounding.model
Class PostProcessingOperation
java.lang.Object
com.sap.ai.sdk.grounding.model.PostProcessingOperation
- All Implemented Interfaces:
RetrievalSearchInputPostProcessingInnerInputsInner
public class PostProcessingOperation
extends Object
implements RetrievalSearchInputPostProcessingInnerInputsInner
PostProcessingOperation
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PostProcessingOperation. -
Method Summary
Modifier and TypeMethodDescriptionAdd one inputs instance to thisPostProcessingOperation.create()Create a type-safe, fluent-api builder object to construct a newPostProcessingOperationinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePostProcessingOperation.getId()New ID for each PostProcessingOperation.Get inputsMaximum number of chunks to be retained in final PerSearchFilterResult.Get strategyinthashCode()Set the id of thisPostProcessingOperationinstance and return the same instance.Set the inputs of thisPostProcessingOperationinstance and return the same instance.maxChunkCount(Integer maxChunkCount) Set the maxChunkCount of thisPostProcessingOperationinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPostProcessingOperationinstance.voidSet the id of thisPostProcessingOperationinstance.voidSet the inputs of thisPostProcessingOperationinstance.voidsetMaxChunkCount(Integer maxChunkCount) Set the maxChunkCount of thisPostProcessingOperationinstance.voidsetStrategy(Strategy strategy) Set the strategy of thisPostProcessingOperationinstance.Set the strategy of thisPostProcessingOperationinstance and return the same instance.toMap()Get the value of all properties of thisPostProcessingOperationinstance including unrecognized properties.toString()
-
Constructor Details
-
PostProcessingOperation
protected PostProcessingOperation()Default constructor for PostProcessingOperation.
-
-
Method Details
-
id
Set the id of thisPostProcessingOperationinstance and return the same instance.- Parameters:
id- New ID for each PostProcessingOperation.- Returns:
- The same instance of this
PostProcessingOperationclass
-
getId
New ID for each PostProcessingOperation.- Returns:
- id The id of this
PostProcessingOperationinstance.
-
setId
Set the id of thisPostProcessingOperationinstance.- Parameters:
id- New ID for each PostProcessingOperation.
-
maxChunkCount
Set the maxChunkCount of thisPostProcessingOperationinstance and return the same instance.- Parameters:
maxChunkCount- Maximum number of chunks to be retained in final PerSearchFilterResult. Minimum: 0 Maximum: 10000000- Returns:
- The same instance of this
PostProcessingOperationclass
-
getMaxChunkCount
Maximum number of chunks to be retained in final PerSearchFilterResult. minimum: 0 maximum: 10000000- Returns:
- maxChunkCount The maxChunkCount of this
PostProcessingOperationinstance.
-
setMaxChunkCount
Set the maxChunkCount of thisPostProcessingOperationinstance.- Parameters:
maxChunkCount- Maximum number of chunks to be retained in final PerSearchFilterResult. Minimum: 0 Maximum: 10000000
-
strategy
Set the strategy of thisPostProcessingOperationinstance and return the same instance.- Parameters:
strategy- The strategy of thisPostProcessingOperation- Returns:
- The same instance of this
PostProcessingOperationclass
-
getStrategy
Get strategy- Returns:
- strategy The strategy of this
PostProcessingOperationinstance.
-
setStrategy
Set the strategy of thisPostProcessingOperationinstance.- Parameters:
strategy- The strategy of thisPostProcessingOperation
-
inputs
@Nonnull public PostProcessingOperation inputs(@Nonnull List<RetrievalSearchInputPostProcessingInnerInputsInner> inputs) Set the inputs of thisPostProcessingOperationinstance and return the same instance.- Parameters:
inputs- The inputs of thisPostProcessingOperation- Returns:
- The same instance of this
PostProcessingOperationclass
-
addInputsItem
@Nonnull public PostProcessingOperation addInputsItem(@Nonnull RetrievalSearchInputPostProcessingInnerInputsInner inputsItem) Add one inputs instance to thisPostProcessingOperation.- Parameters:
inputsItem- The inputs that should be added- Returns:
- The same instance of type
PostProcessingOperation
-
getInputs
Get inputs- Returns:
- inputs The inputs of this
PostProcessingOperationinstance.
-
setInputs
Set the inputs of thisPostProcessingOperationinstance.- Parameters:
inputs- The inputs of thisPostProcessingOperation
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePostProcessingOperation.- 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 thisPostProcessingOperationinstance.- 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 thisPostProcessingOperationinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPostProcessingOperationinstance. 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 newPostProcessingOperationinstance with all required arguments.
-
toMap()instead.