Class PredictionResult
java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.generated.model.PredictionResult
A single prediction result for a single column in a single row.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PredictionResult. -
Method Summary
Modifier and TypeMethodDescriptionconfidence(BigDecimal confidence) Set the confidence of thisPredictionResultinstance and return the same instance.static PredictionResult.Buildercreate()Create a type-safe, fluent-api builder object to construct a newPredictionResultinstance with all required arguments.booleanGet confidencegetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePredictionResult.Get predictioninthashCode()prediction(Prediction prediction) Set the prediction of thisPredictionResultinstance and return the same instance.voidsetConfidence(BigDecimal confidence) Set the confidence of thisPredictionResultinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPredictionResultinstance.voidsetPrediction(Prediction prediction) Set the prediction of thisPredictionResultinstance.toMap()Get the value of all properties of thisPredictionResultinstance including unrecognized properties.toString()
-
Constructor Details
-
PredictionResult
protected PredictionResult()Default constructor for PredictionResult.
-
-
Method Details
-
prediction
Set the prediction of thisPredictionResultinstance and return the same instance.- Parameters:
prediction- The prediction of thisPredictionResult- Returns:
- The same instance of this
PredictionResultclass
-
getPrediction
Get prediction- Returns:
- prediction The prediction of this
PredictionResultinstance.
-
setPrediction
Set the prediction of thisPredictionResultinstance.- Parameters:
prediction- The prediction of thisPredictionResult
-
confidence
Set the confidence of thisPredictionResultinstance and return the same instance.- Parameters:
confidence- The confidence of thisPredictionResult- Returns:
- The same instance of this
PredictionResultclass
-
getConfidence
Get confidence- Returns:
- confidence The confidence of this
PredictionResultinstance.
-
setConfidence
Set the confidence of thisPredictionResultinstance.- Parameters:
confidence- The confidence of thisPredictionResult
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePredictionResult.- 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 thisPredictionResultinstance.- 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 thisPredictionResultinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPredictionResultinstance. 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 newPredictionResultinstance with all required arguments.
-
toMap()instead.