Class PredictRequestPayloadOneOf
java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.generated.model.PredictRequestPayloadOneOf
- All Implemented Interfaces:
PredictRequestPayload
PredictRequestPayloadOneOf
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for PredictRequestPayloadOneOf. -
Method Summary
Modifier and TypeMethodDescriptionaddRowsItem(Map<String, RowsInnerValue> rowsItem) Add one rows instance to thisPredictRequestPayloadOneOf.create()Create a type-safe, fluent-api builder object to construct a newPredictRequestPayloadOneOfinstance with all required arguments.dataSchema(Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadOneOfinstance and return the same instance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of thePredictRequestPayloadOneOf.Optional schema defining the data types of each column.The name of the index column.Configuration of target columns and prediction placeholders.getRows()Table rows, i.e.inthashCode()indexColumn(String indexColumn) Set the indexColumn of thisPredictRequestPayloadOneOfinstance and return the same instance.Whether to parse the data types of the columns.parseDataTypes(Boolean parseDataTypes) Set the parseDataTypes of thisPredictRequestPayloadOneOfinstance and return the same instance.predictionConfig(PredictionConfig predictionConfig) Set the predictionConfig of thisPredictRequestPayloadOneOfinstance and return the same instance.putdataSchemaItem(String key, SchemaFieldConfig dataSchemaItem) Put one dataSchema instance to thisPredictRequestPayloadOneOfinstance.rows(List<Map<String, RowsInnerValue>> rows) Set the rows of thisPredictRequestPayloadOneOfinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisPredictRequestPayloadOneOfinstance.voidsetDataSchema(Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadOneOfinstance.voidsetIndexColumn(String indexColumn) Set the indexColumn of thisPredictRequestPayloadOneOfinstance.voidsetParseDataTypes(Boolean parseDataTypes) Set the parseDataTypes of thisPredictRequestPayloadOneOfinstance.voidsetPredictionConfig(PredictionConfig predictionConfig) Set the predictionConfig of thisPredictRequestPayloadOneOfinstance.voidsetRows(List<Map<String, RowsInnerValue>> rows) Set the rows of thisPredictRequestPayloadOneOfinstance.toMap()Get the value of all properties of thisPredictRequestPayloadOneOfinstance including unrecognized properties.toString()
-
Constructor Details
-
PredictRequestPayloadOneOf
protected PredictRequestPayloadOneOf()Default constructor for PredictRequestPayloadOneOf.
-
-
Method Details
-
predictionConfig
@Nonnull public PredictRequestPayloadOneOf predictionConfig(@Nonnull PredictionConfig predictionConfig) Set the predictionConfig of thisPredictRequestPayloadOneOfinstance and return the same instance.- Parameters:
predictionConfig- Configuration of target columns and prediction placeholders.- Returns:
- The same instance of this
PredictRequestPayloadOneOfclass
-
getPredictionConfig
Configuration of target columns and prediction placeholders.- Returns:
- predictionConfig The predictionConfig of this
PredictRequestPayloadOneOfinstance.
-
setPredictionConfig
Set the predictionConfig of thisPredictRequestPayloadOneOfinstance.- Parameters:
predictionConfig- Configuration of target columns and prediction placeholders.
-
indexColumn
Set the indexColumn of thisPredictRequestPayloadOneOfinstance 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
PredictRequestPayloadOneOfclass
-
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
PredictRequestPayloadOneOfinstance.
-
setIndexColumn
Set the indexColumn of thisPredictRequestPayloadOneOfinstance.- 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 thisPredictRequestPayloadOneOfinstance 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
PredictRequestPayloadOneOfclass
-
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
PredictRequestPayloadOneOfinstance.
-
setParseDataTypes
Set the parseDataTypes of thisPredictRequestPayloadOneOfinstance.- 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 PredictRequestPayloadOneOf dataSchema(@Nullable Map<String, SchemaFieldConfig> dataSchema) Set the dataSchema of thisPredictRequestPayloadOneOfinstance 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
PredictRequestPayloadOneOfclass
-
putdataSchemaItem
@Nonnull public PredictRequestPayloadOneOf putdataSchemaItem(@Nonnull String key, @Nonnull SchemaFieldConfig dataSchemaItem) Put one dataSchema instance to thisPredictRequestPayloadOneOfinstance.- 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
PredictRequestPayloadOneOf
-
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
PredictRequestPayloadOneOfinstance.
-
setDataSchema
Set the dataSchema of thisPredictRequestPayloadOneOfinstance.- Parameters:
dataSchema- Optional schema defining the data types of each column. If provided, this will override automatic data type parsing.
-
rows
Set the rows of thisPredictRequestPayloadOneOfinstance 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
PredictRequestPayloadOneOfclass
-
addRowsItem
@Nonnull public PredictRequestPayloadOneOf addRowsItem(@Nonnull Map<String, RowsInnerValue> rowsItem) Add one rows instance to thisPredictRequestPayloadOneOf.- Parameters:
rowsItem- The rows that should be added- Returns:
- The same instance of type
PredictRequestPayloadOneOf
-
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
PredictRequestPayloadOneOfinstance.
-
setRows
Set the rows of thisPredictRequestPayloadOneOfinstance.- 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.
-
getCustomFieldNames
Get the names of the unrecognizable properties of thePredictRequestPayloadOneOf.- 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 thisPredictRequestPayloadOneOfinstance.- 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 thisPredictRequestPayloadOneOfinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisPredictRequestPayloadOneOfinstance. 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 newPredictRequestPayloadOneOfinstance with all required arguments.
-
toMap()instead.