Class PredictRequestPayloadOneOf1

java.lang.Object
com.sap.ai.sdk.foundationmodels.rpt.generated.model.PredictRequestPayloadOneOf1
All Implemented Interfaces:
PredictRequestPayload

public class PredictRequestPayloadOneOf1 extends Object implements PredictRequestPayload
PredictRequestPayloadOneOf1
  • Constructor Details

    • PredictRequestPayloadOneOf1

      protected PredictRequestPayloadOneOf1()
      Default constructor for PredictRequestPayloadOneOf1.
  • Method Details

    • predictionConfig

      @Nonnull public PredictRequestPayloadOneOf1 predictionConfig(@Nonnull PredictionConfig predictionConfig)
      Set the predictionConfig of this PredictRequestPayloadOneOf1 instance and return the same instance.
      Parameters:
      predictionConfig - Configuration of target columns and prediction placeholders.
      Returns:
      The same instance of this PredictRequestPayloadOneOf1 class
    • getPredictionConfig

      @Nonnull public PredictionConfig getPredictionConfig()
      Configuration of target columns and prediction placeholders.
      Returns:
      predictionConfig The predictionConfig of this PredictRequestPayloadOneOf1 instance.
    • setPredictionConfig

      public void setPredictionConfig(@Nonnull PredictionConfig predictionConfig)
      Set the predictionConfig of this PredictRequestPayloadOneOf1 instance.
      Parameters:
      predictionConfig - Configuration of target columns and prediction placeholders.
    • indexColumn

      @Nonnull public PredictRequestPayloadOneOf1 indexColumn(@Nullable String indexColumn)
      Set the indexColumn of this PredictRequestPayloadOneOf1 instance 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 PredictRequestPayloadOneOf1 class
    • getIndexColumn

      @Nullable public String 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 PredictRequestPayloadOneOf1 instance.
    • setIndexColumn

      public void setIndexColumn(@Nullable String indexColumn)
      Set the indexColumn of this PredictRequestPayloadOneOf1 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.
    • parseDataTypes

      @Nonnull public PredictRequestPayloadOneOf1 parseDataTypes(@Nullable Boolean parseDataTypes)
      Set the parseDataTypes of this PredictRequestPayloadOneOf1 instance 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 PredictRequestPayloadOneOf1 class
    • isParseDataTypes

      @Nonnull public Boolean 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 PredictRequestPayloadOneOf1 instance.
    • setParseDataTypes

      public void setParseDataTypes(@Nullable Boolean parseDataTypes)
      Set the parseDataTypes of this PredictRequestPayloadOneOf1 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.
    • dataSchema

      @Nonnull public PredictRequestPayloadOneOf1 dataSchema(@Nullable Map<String,SchemaFieldConfig> dataSchema)
      Set the dataSchema of this PredictRequestPayloadOneOf1 instance 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 PredictRequestPayloadOneOf1 class
    • putdataSchemaItem

      @Nonnull public PredictRequestPayloadOneOf1 putdataSchemaItem(@Nonnull String key, @Nonnull SchemaFieldConfig dataSchemaItem)
      Put one dataSchema instance to this PredictRequestPayloadOneOf1 instance.
      Parameters:
      key - The String key of this dataSchema instance
      dataSchemaItem - The dataSchema that should be added under the given key
      Returns:
      The same instance of type PredictRequestPayloadOneOf1
    • getDataSchema

      @Nullable public Map<String,SchemaFieldConfig> 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 PredictRequestPayloadOneOf1 instance.
    • setDataSchema

      public void setDataSchema(@Nullable Map<String,SchemaFieldConfig> dataSchema)
      Set the dataSchema of this PredictRequestPayloadOneOf1 instance.
      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 this PredictRequestPayloadOneOf1 instance 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 PredictRequestPayloadOneOf1 class
    • putcolumnsItem

      @Nonnull public PredictRequestPayloadOneOf1 putcolumnsItem(@Nonnull String key, @Nonnull List<RowsInnerValue> columnsItem)
      Put one columns instance to this PredictRequestPayloadOneOf1 instance.
      Parameters:
      key - The String key of this columns instance
      columnsItem - The columns that should be added under the given key
      Returns:
      The same instance of type PredictRequestPayloadOneOf1
    • getColumns

      @Nonnull public Map<String,List<RowsInnerValue>> 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 PredictRequestPayloadOneOf1 instance.
    • setColumns

      public void setColumns(@Nonnull Map<String,List<RowsInnerValue>> columns)
      Set the columns of this PredictRequestPayloadOneOf1 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.
    • getCustomFieldNames

      @Nonnull public Set<String> getCustomFieldNames()
      Get the names of the unrecognizable properties of the PredictRequestPayloadOneOf1.
      Returns:
      The set of properties names
    • getCustomField

      @Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException
      Deprecated.
      Use toMap() instead.
      Get the value of an unrecognizable property of this PredictRequestPayloadOneOf1 instance.
      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

      @Nonnull public Map<String,Object> toMap()
      Get the value of all properties of this PredictRequestPayloadOneOf1 instance including unrecognized properties.
      Returns:
      The map of all properties
    • setCustomField

      public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue)
      Set an unrecognizable property of this PredictRequestPayloadOneOf1 instance. 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 property
      customFieldValue - The value of the property
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object
    • create

      public static PredictRequestPayloadOneOf1.Builder create()
      Create a type-safe, fluent-api builder object to construct a new PredictRequestPayloadOneOf1 instance with all required arguments.