Class PredictRequestPayloadOneOf1
java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.generated.model.PredictRequestPayloadOneOf1
- All Implemented Interfaces:
PredictRequestPayload
PredictRequestPayloadOneOf1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PredictRequestPayloadOneOf1. -
Method Summary
Modifier and TypeMethodDescriptioncolumns(Map<String, List<RowsInnerValue>> columns) Set the columns of thisPredictRequestPayloadOneOf1instance and return the same instance.create()Create a type-safe, fluent-api builder object to construct a newPredictRequestPayloadOneOf1instance with all required arguments.dataSchema(Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadOneOf1instance and return the same instance.booleanAlternative to rows: columns of data where each key is a column name and the value is a list of all column values.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePredictRequestPayloadOneOf1.Optional schema defining the data types of each column.The name of the index column.Configuration of target columns and prediction placeholders.inthashCode()indexColumn(String indexColumn) Set the indexColumn of thisPredictRequestPayloadOneOf1instance and return the same instance.Whether to parse the data types of the columns.parseDataTypes(Boolean parseDataTypes) Set the parseDataTypes of thisPredictRequestPayloadOneOf1instance and return the same instance.predictionConfig(PredictionConfig predictionConfig) Set the predictionConfig of thisPredictRequestPayloadOneOf1instance and return the same instance.putcolumnsItem(String key, List<RowsInnerValue> columnsItem) Put one columns instance to thisPredictRequestPayloadOneOf1instance.putdataSchemaItem(String key, SchemaFieldConfig dataSchemaItem) Put one dataSchema instance to thisPredictRequestPayloadOneOf1instance.voidsetColumns(Map<String, List<RowsInnerValue>> columns) Set the columns of thisPredictRequestPayloadOneOf1instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPredictRequestPayloadOneOf1instance.voidsetDataSchema(Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadOneOf1instance.voidsetIndexColumn(String indexColumn) Set the indexColumn of thisPredictRequestPayloadOneOf1instance.voidsetParseDataTypes(Boolean parseDataTypes) Set the parseDataTypes of thisPredictRequestPayloadOneOf1instance.voidsetPredictionConfig(PredictionConfig predictionConfig) Set the predictionConfig of thisPredictRequestPayloadOneOf1instance.toMap()Get the value of all properties of thisPredictRequestPayloadOneOf1instance including unrecognized properties.toString()
-
Constructor Details
-
PredictRequestPayloadOneOf1
protected PredictRequestPayloadOneOf1()Default constructor for PredictRequestPayloadOneOf1.
-
-
Method Details
-
predictionConfig
@Nonnull public PredictRequestPayloadOneOf1 predictionConfig(@Nonnull PredictionConfig predictionConfig) Set the predictionConfig of thisPredictRequestPayloadOneOf1instance and return the same instance.- Parameters:
predictionConfig- Configuration of target columns and prediction placeholders.- Returns:
- The same instance of this
PredictRequestPayloadOneOf1class
-
getPredictionConfig
Configuration of target columns and prediction placeholders.- Returns:
- predictionConfig The predictionConfig of this
PredictRequestPayloadOneOf1instance.
-
setPredictionConfig
Set the predictionConfig of thisPredictRequestPayloadOneOf1instance.- Parameters:
predictionConfig- Configuration of target columns and prediction placeholders.
-
indexColumn
Set the indexColumn of thisPredictRequestPayloadOneOf1instance and return the same instance.- Parameters:
indexColumn- The name of the index column. If provided, the service will return this column's value in each prediction object to facilitate aligning the output predictions with the input rows on the client side. If not provided, the column will not be included in the output.- Returns:
- The same instance of this
PredictRequestPayloadOneOf1class
-
getIndexColumn
The name of the index column. If provided, the service will return this column's value in each prediction object to facilitate aligning the output predictions with the input rows on the client side. If not provided, the column will not be included in the output.- Returns:
- indexColumn The indexColumn of this
PredictRequestPayloadOneOf1instance.
-
setIndexColumn
Set the indexColumn of thisPredictRequestPayloadOneOf1instance.- Parameters:
indexColumn- The name of the index column. If provided, the service will return this column's value in each prediction object to facilitate aligning the output predictions with the input rows on the client side. If not provided, the column will not be included in the output.
-
parseDataTypes
Set the parseDataTypes of thisPredictRequestPayloadOneOf1instance 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
PredictRequestPayloadOneOf1class
-
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
PredictRequestPayloadOneOf1instance.
-
setParseDataTypes
Set the parseDataTypes of thisPredictRequestPayloadOneOf1instance.- 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 PredictRequestPayloadOneOf1 dataSchema(@Nullable Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadOneOf1instance and return the same instance.- Parameters:
dataSchema- Optional schema defining the data types of each column. If provided, this will override automatic data type parsing.- Returns:
- The same instance of this
PredictRequestPayloadOneOf1class
-
putdataSchemaItem
@Nonnull public PredictRequestPayloadOneOf1 putdataSchemaItem(@Nonnull String key, @Nonnull SchemaFieldConfig dataSchemaItem) Put one dataSchema instance to thisPredictRequestPayloadOneOf1instance.- 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
PredictRequestPayloadOneOf1
-
getDataSchema
Optional schema defining the data types of each column. If provided, this will override automatic data type parsing.- Returns:
- dataSchema The dataSchema of this
PredictRequestPayloadOneOf1instance.
-
setDataSchema
Set the dataSchema of thisPredictRequestPayloadOneOf1instance.- Parameters:
dataSchema- Optional schema defining the data types of each column. If provided, this will override automatic data type parsing.
-
columns
@Nonnull public PredictRequestPayloadOneOf1 columns(@Nonnull Map<String, List<RowsInnerValue>> columns) Set the columns of thisPredictRequestPayloadOneOf1instance and return the same instance.- Parameters:
columns- Alternative to rows: columns of data where each key is a column name and the value is a list of all column values. Either \"rows\" or \"columns\" must be provided.- Returns:
- The same instance of this
PredictRequestPayloadOneOf1class
-
putcolumnsItem
@Nonnull public PredictRequestPayloadOneOf1 putcolumnsItem(@Nonnull String key, @Nonnull List<RowsInnerValue> columnsItem) Put one columns instance to thisPredictRequestPayloadOneOf1instance.- 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
PredictRequestPayloadOneOf1
-
getColumns
Alternative to rows: columns of data where each key is a column name and the value is a list of all column values. Either \"rows\" or \"columns\" must be provided.- Returns:
- columns The columns of this
PredictRequestPayloadOneOf1instance.
-
setColumns
Set the columns of thisPredictRequestPayloadOneOf1instance.- Parameters:
columns- Alternative to rows: columns of data where each key is a column name and the value is a list of all column values. Either \"rows\" or \"columns\" must be provided.
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePredictRequestPayloadOneOf1.- 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 thisPredictRequestPayloadOneOf1instance.- 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 thisPredictRequestPayloadOneOf1instance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPredictRequestPayloadOneOf1instance. 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 newPredictRequestPayloadOneOf1instance with all required arguments.
-
toMap()instead.