Class StartMatchingForFunctionsInputBody

java.lang.Object
ai.reveng.model.StartMatchingForFunctionsInputBody

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

  • Constructor Details

    • StartMatchingForFunctionsInputBody

      public StartMatchingForFunctionsInputBody()
  • Method Details

    • filters

      public StartMatchingForFunctionsInputBody filters(@Nullable MatchFilters filters)
    • getFilters

      @Nullable public MatchFilters getFilters()
      Narrow the candidate pool.
      Returns:
      filters
    • setFilters

      public void setFilters(@Nullable MatchFilters filters)
    • functionIds

      public StartMatchingForFunctionsInputBody functionIds(@Nullable List<Long> functionIds)
    • addFunctionIdsItem

      public StartMatchingForFunctionsInputBody addFunctionIdsItem(Long functionIdsItem)
    • getFunctionIds

      @Nullable public List<Long> getFunctionIds()
      Source function IDs to match against the rest of the corpus.
      Returns:
      functionIds
    • setFunctionIds

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

      public StartMatchingForFunctionsInputBody minSimilarity(@Nullable Double minSimilarity)
    • getMinSimilarity

      @Nullable public Double getMinSimilarity()
      Similarity floor as a percentage. Defaults to 90. minimum: 0 maximum: 100
      Returns:
      minSimilarity
    • setMinSimilarity

      public void setMinSimilarity(@Nullable Double minSimilarity)
    • noCache

      public StartMatchingForFunctionsInputBody noCache(@Nullable Boolean noCache)
    • getNoCache

      @Nullable public Boolean getNoCache()
      By default a completed matching run for the same request is reused (response status=COMPLETED, no new run). Set true to force a fresh run.
      Returns:
      noCache
    • setNoCache

      public void setNoCache(@Nullable Boolean noCache)
    • resultsPerFunction

      public StartMatchingForFunctionsInputBody resultsPerFunction(@Nullable Long resultsPerFunction)
    • getResultsPerFunction

      @Nullable public Long getResultsPerFunction()
      Max matches returned per source function. Defaults to 1. minimum: 1 maximum: 30
      Returns:
      resultsPerFunction
    • setResultsPerFunction

      public void setResultsPerFunction(@Nullable Long resultsPerFunction)
    • useCanonicalNames

      public StartMatchingForFunctionsInputBody useCanonicalNames(@Nullable Boolean useCanonicalNames)
    • getUseCanonicalNames

      @Nullable public Boolean getUseCanonicalNames()
      Collapse near-duplicate candidate names into canonical buckets and return per-name confidences (the response 'confidences' array). Adds a canonicalisation step; defaults to false.
      Returns:
      useCanonicalNames
    • setUseCanonicalNames

      public void setUseCanonicalNames(@Nullable Boolean useCanonicalNames)
    • putAdditionalProperty

      public StartMatchingForFunctionsInputBody 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 StartMatchingForFunctionsInputBody 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 StartMatchingForFunctionsInputBody
    • fromJson

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

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