Class PredictRequestPayload
java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.generated.model.PredictRequestPayload
Users need to specify a list of rows, which contains both the context rows and the rows for which
to predict a label, and a mapping of column names to placeholder values. The model will predict
the value for any column specified in `predict_columns` for all rows that have the
placeholder value in that column.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PredictRequestPayload. -
Method Summary
Modifier and TypeMethodDescriptionaddRowsItem(Map<String, RowsInnerValue> rowsItem) Add one rows instance to thisPredictRequestPayload.columns(Map<String, List<RowsInnerValue>> columns) Set the columns of thisPredictRequestPayloadinstance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newPredictRequestPayloadinstance with all required arguments.dataSchema(Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadinstance and return the same instance.booleanGet columnsgetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePredictRequestPayload.Get dataSchemaGet indexColumnConfiguration of target columns and placeholder value.getRows()Table rows, i.e.inthashCode()indexColumn(String indexColumn) Set the indexColumn of thisPredictRequestPayloadinstance and return the same instance.Whether to parse the data types of the columns.parseDataTypes(Boolean parseDataTypes) Set the parseDataTypes of thisPredictRequestPayloadinstance and return the same instance.predictionConfig(PredictionConfig predictionConfig) Set the predictionConfig of thisPredictRequestPayloadinstance and return the same instance.putcolumnsItem(String key, List<RowsInnerValue> columnsItem) Put one columns instance to thisPredictRequestPayloadinstance.putdataSchemaItem(String key, SchemaFieldConfig dataSchemaItem) Put one dataSchema instance to thisPredictRequestPayloadinstance.rows(List<Map<String, RowsInnerValue>> rows) Set the rows of thisPredictRequestPayloadinstance and return the same instance.voidsetColumns(Map<String, List<RowsInnerValue>> columns) Set the columns of thisPredictRequestPayloadinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPredictRequestPayloadinstance.voidsetDataSchema(Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadinstance.voidsetIndexColumn(String indexColumn) Set the indexColumn of thisPredictRequestPayloadinstance.voidsetParseDataTypes(Boolean parseDataTypes) Set the parseDataTypes of thisPredictRequestPayloadinstance.voidsetPredictionConfig(PredictionConfig predictionConfig) Set the predictionConfig of thisPredictRequestPayloadinstance.voidsetRows(List<Map<String, RowsInnerValue>> rows) Set the rows of thisPredictRequestPayloadinstance.toMap()Get the value of all properties of thisPredictRequestPayloadinstance including unrecognized properties.toString()
-
Constructor Details
-
PredictRequestPayload
protected PredictRequestPayload()Default constructor for PredictRequestPayload.
-
-
Method Details
-
predictionConfig
Set the predictionConfig of thisPredictRequestPayloadinstance and return the same instance.- Parameters:
predictionConfig- Configuration of target columns and placeholder value.- Returns:
- The same instance of this
PredictRequestPayloadclass
-
getPredictionConfig
Configuration of target columns and placeholder value.- Returns:
- predictionConfig The predictionConfig of this
PredictRequestPayloadinstance.
-
setPredictionConfig
Set the predictionConfig of thisPredictRequestPayloadinstance.- Parameters:
predictionConfig- Configuration of target columns and placeholder value.
-
rows
Set the rows of thisPredictRequestPayloadinstance and return the same instance.- Parameters:
rows- Table rows, i.e. list of objects where each object is a mapping of column names to values. Either \"rows\" or \"columns\" must be provided.- Returns:
- The same instance of this
PredictRequestPayloadclass
-
addRowsItem
Add one rows instance to thisPredictRequestPayload.- Parameters:
rowsItem- The rows that should be added- Returns:
- The same instance of type
PredictRequestPayload
-
getRows
Table rows, i.e. list of objects where each object is a mapping of column names to values. Either \"rows\" or \"columns\" must be provided.- Returns:
- rows The rows of this
PredictRequestPayloadinstance.
-
setRows
Set the rows of thisPredictRequestPayloadinstance.- Parameters:
rows- Table rows, i.e. list of objects where each object is a mapping of column names to values. Either \"rows\" or \"columns\" must be provided.
-
columns
Set the columns of thisPredictRequestPayloadinstance and return the same instance.- Parameters:
columns- The columns of thisPredictRequestPayload- Returns:
- The same instance of this
PredictRequestPayloadclass
-
putcolumnsItem
@Nonnull public PredictRequestPayload putcolumnsItem(@Nonnull String key, @Nonnull List<RowsInnerValue> columnsItem) Put one columns instance to thisPredictRequestPayloadinstance.- Parameters:
key- The String key of this columns instancecolumnsItem- The columns that should be added under the given key- Returns:
- The same instance of type
PredictRequestPayload
-
getColumns
Get columns- Returns:
- columns The columns of this
PredictRequestPayloadinstance.
-
setColumns
Set the columns of thisPredictRequestPayloadinstance.- Parameters:
columns- The columns of thisPredictRequestPayload
-
indexColumn
Set the indexColumn of thisPredictRequestPayloadinstance and return the same instance.- Parameters:
indexColumn- The indexColumn of thisPredictRequestPayload- Returns:
- The same instance of this
PredictRequestPayloadclass
-
getIndexColumn
Get indexColumn- Returns:
- indexColumn The indexColumn of this
PredictRequestPayloadinstance.
-
setIndexColumn
Set the indexColumn of thisPredictRequestPayloadinstance.- Parameters:
indexColumn- The indexColumn of thisPredictRequestPayload
-
parseDataTypes
Set the parseDataTypes of thisPredictRequestPayloadinstance and return the same instance.- Parameters:
parseDataTypes- Whether to parse the data types of the columns. If set to True, numeric columns will be parsed to float or integer and dates in ISO format YYYY-MM-DD will be parsed.- Returns:
- The same instance of this
PredictRequestPayloadclass
-
isParseDataTypes
Whether to parse the data types of the columns. If set to True, numeric columns will be parsed to float or integer and dates in ISO format YYYY-MM-DD will be parsed.- Returns:
- parseDataTypes The parseDataTypes of this
PredictRequestPayloadinstance.
-
setParseDataTypes
Set the parseDataTypes of thisPredictRequestPayloadinstance.- Parameters:
parseDataTypes- Whether to parse the data types of the columns. If set to True, numeric columns will be parsed to float or integer and dates in ISO format YYYY-MM-DD will be parsed.
-
dataSchema
@Nonnull public PredictRequestPayload dataSchema(@Nullable Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadinstance and return the same instance.- Parameters:
dataSchema- The dataSchema of thisPredictRequestPayload- Returns:
- The same instance of this
PredictRequestPayloadclass
-
putdataSchemaItem
@Nonnull public PredictRequestPayload putdataSchemaItem(@Nonnull String key, @Nonnull SchemaFieldConfig dataSchemaItem) Put one dataSchema instance to thisPredictRequestPayloadinstance.- Parameters:
key- The String key of this dataSchema instancedataSchemaItem- The dataSchema that should be added under the given key- Returns:
- The same instance of type
PredictRequestPayload
-
getDataSchema
Get dataSchema- Returns:
- dataSchema The dataSchema of this
PredictRequestPayloadinstance.
-
setDataSchema
Set the dataSchema of thisPredictRequestPayloadinstance.- Parameters:
dataSchema- The dataSchema of thisPredictRequestPayload
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePredictRequestPayload.- 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 thisPredictRequestPayloadinstance.- 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 thisPredictRequestPayloadinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPredictRequestPayloadinstance. 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 newPredictRequestPayloadinstance with all required arguments.
-
toMap()instead.