Class PredictRequestPayloadOneOf

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

public class PredictRequestPayloadOneOf extends Object implements PredictRequestPayload
PredictRequestPayloadOneOf
  • Constructor Details

    • PredictRequestPayloadOneOf

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

    • predictionConfig

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

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

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

      @Nonnull public PredictRequestPayloadOneOf indexColumn(@Nullable String indexColumn)
      Set the indexColumn of this PredictRequestPayloadOneOf 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 PredictRequestPayloadOneOf 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 PredictRequestPayloadOneOf instance.
    • setIndexColumn

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

      public void setParseDataTypes(@Nullable Boolean parseDataTypes)
      Set the parseDataTypes of this PredictRequestPayloadOneOf 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 PredictRequestPayloadOneOf dataSchema(@Nullable Map<String,SchemaFieldConfig> dataSchema)
      Set the dataSchema of this PredictRequestPayloadOneOf 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 PredictRequestPayloadOneOf class
    • putdataSchemaItem

      @Nonnull public PredictRequestPayloadOneOf putdataSchemaItem(@Nonnull String key, @Nonnull SchemaFieldConfig dataSchemaItem)
      Put one dataSchema instance to this PredictRequestPayloadOneOf 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 PredictRequestPayloadOneOf
    • 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 PredictRequestPayloadOneOf instance.
    • setDataSchema

      public void setDataSchema(@Nullable Map<String,SchemaFieldConfig> dataSchema)
      Set the dataSchema of this PredictRequestPayloadOneOf instance.
      Parameters:
      dataSchema - Optional schema defining the data types of each column. If provided, this will override automatic data type parsing.
    • rows

      @Nonnull public PredictRequestPayloadOneOf rows(@Nonnull List<Map<String,RowsInnerValue>> rows)
      Set the rows of this PredictRequestPayloadOneOf instance 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 PredictRequestPayloadOneOf class
    • addRowsItem

      @Nonnull public PredictRequestPayloadOneOf addRowsItem(@Nonnull Map<String,RowsInnerValue> rowsItem)
      Add one rows instance to this PredictRequestPayloadOneOf.
      Parameters:
      rowsItem - The rows that should be added
      Returns:
      The same instance of type PredictRequestPayloadOneOf
    • getRows

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

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

      @Nonnull public Set<String> getCustomFieldNames()
      Get the names of the unrecognizable properties of the PredictRequestPayloadOneOf.
      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 PredictRequestPayloadOneOf 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 PredictRequestPayloadOneOf 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 PredictRequestPayloadOneOf 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 PredictRequestPayloadOneOf.Builder create()
      Create a type-safe, fluent-api builder object to construct a new PredictRequestPayloadOneOf instance with all required arguments.