Class FunctionMatchingRequest

java.lang.Object
ai.reveng.model.FunctionMatchingRequest

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class FunctionMatchingRequest extends Object
FunctionMatchingRequest
  • Field Details

  • Constructor Details

    • FunctionMatchingRequest

      public FunctionMatchingRequest()
  • Method Details

    • modelId

      public FunctionMatchingRequest modelId(@Nonnull Integer modelId)
    • getModelId

      @Nonnull public Integer getModelId()
      ID of the model used for function matching, used to determine the embedding model
      Returns:
      modelId
    • setModelId

      public void setModelId(@Nonnull Integer modelId)
    • functionIds

      public FunctionMatchingRequest functionIds(@Nonnull List<Long> functionIds)
    • addFunctionIdsItem

      public FunctionMatchingRequest addFunctionIdsItem(Long functionIdsItem)
    • getFunctionIds

      @Nonnull public List<Long> getFunctionIds()
      ID's of functions to find matches for, must be at least one function ID
      Returns:
      functionIds
    • setFunctionIds

      public void setFunctionIds(@Nonnull List<Long> functionIds)
    • minSimilarity

      public FunctionMatchingRequest minSimilarity(@Nullable BigDecimal minSimilarity)
    • getMinSimilarity

      @Nullable public BigDecimal getMinSimilarity()
      Minimum similarity expected for a match as a percentage, default is 90 minimum: 0.0 maximum: 100.0
      Returns:
      minSimilarity
    • setMinSimilarity

      public void setMinSimilarity(@Nullable BigDecimal minSimilarity)
    • filters

      public FunctionMatchingRequest filters(@Nullable FunctionMatchingFilters filters)
    • getFilters

      @Nullable public FunctionMatchingFilters getFilters()
      Get filters
      Returns:
      filters
    • setFilters

      public void setFilters(@Nullable FunctionMatchingFilters filters)
    • resultsPerFunction

      public FunctionMatchingRequest resultsPerFunction(@Nullable Integer resultsPerFunction)
    • getResultsPerFunction

      @Nullable public Integer getResultsPerFunction()
      Maximum number of matches to return per function, default is 1, max is 50 minimum: 1 maximum: 50
      Returns:
      resultsPerFunction
    • setResultsPerFunction

      public void setResultsPerFunction(@Nullable Integer resultsPerFunction)
    • page

      @Deprecated public FunctionMatchingRequest page(@Nullable Integer page)
      Deprecated.
    • getPage

      @Deprecated @Nullable public Integer getPage()
      Deprecated.
      Page number for paginated results, default is 1 (first page) minimum: 1
      Returns:
      page
    • setPage

      @Deprecated public void setPage(@Nullable Integer page)
      Deprecated.
    • pageSize

      @Deprecated public FunctionMatchingRequest pageSize(@Nullable Integer pageSize)
      Deprecated.
    • getPageSize

      @Deprecated @Nullable public Integer getPageSize()
      Deprecated.
      Number of functions to return per page, default is 0 (all functions), max is 1000 minimum: 0 maximum: 1000
      Returns:
      pageSize
    • setPageSize

      @Deprecated public void setPageSize(@Nullable Integer pageSize)
      Deprecated.
    • statusOnly

      @Deprecated public FunctionMatchingRequest statusOnly(@Nullable Boolean statusOnly)
      Deprecated.
    • getStatusOnly

      @Deprecated @Nullable public Boolean getStatusOnly()
      Deprecated.
      If set to true, only returns the status of the matching operation without the actual results
      Returns:
      statusOnly
    • setStatusOnly

      @Deprecated public void setStatusOnly(@Nullable Boolean statusOnly)
      Deprecated.
    • noCache

      public FunctionMatchingRequest noCache(@Nullable Boolean noCache)
    • getNoCache

      @Nullable public Boolean getNoCache()
      If set to true, forces the system to bypass any cached results and perform a fresh computation
      Returns:
      noCache
    • setNoCache

      public void setNoCache(@Nullable Boolean noCache)
    • useCanonicalNames

      public FunctionMatchingRequest useCanonicalNames(@Nullable Boolean useCanonicalNames)
    • getUseCanonicalNames

      @Nullable public Boolean getUseCanonicalNames()
      Whether to use canonical function names during function matching for confidence results, default is False
      Returns:
      useCanonicalNames
    • setUseCanonicalNames

      public void setUseCanonicalNames(@Nullable Boolean useCanonicalNames)
    • putAdditionalProperty

      public FunctionMatchingRequest putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the FunctionMatchingRequest instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to FunctionMatchingRequest
    • fromJson

      public static FunctionMatchingRequest fromJson(String jsonString) throws IOException
      Create an instance of FunctionMatchingRequest given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of FunctionMatchingRequest
      Throws:
      IOException - if the JSON string is invalid with respect to FunctionMatchingRequest
    • toJson

      public String toJson()
      Convert an instance of FunctionMatchingRequest to an JSON string
      Returns:
      JSON string