Package ai.reveng.model
Class FunctionMatchingRequest
java.lang.Object
ai.reveng.model.FunctionMatchingRequest
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class FunctionMatchingRequest
extends Object
FunctionMatchingRequest
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFunctionIdsItem(Long functionIdsItem) booleanfilters(FunctionMatchingFilters filters) static FunctionMatchingRequestCreate an instance of FunctionMatchingRequest given an JSON stringfunctionIds(List<Long> functionIds) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get filtersID's of functions to find matches for, must be at least one function IDMinimum similarity expected for a match as a percentage, default is 90 minimum: 0.0 maximum: 100.0ID of the model used for function matching, used to determine the embedding modelIf set to true, forces the system to bypass any cached results and perform a fresh computationgetPage()Page number for paginated results, default is 1 (first page) minimum: 1Number of functions to return per page, default is 0 (all functions), max is 1000 minimum: 0 maximum: 1000Maximum number of matches to return per function, default is 1, max is 50 minimum: 1 maximum: 50If set to true, only returns the status of the matching operation without the actual resultsinthashCode()minSimilarity(BigDecimal minSimilarity) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.resultsPerFunction(Integer resultsPerFunction) voidsetFilters(FunctionMatchingFilters filters) voidsetFunctionIds(List<Long> functionIds) voidsetMinSimilarity(BigDecimal minSimilarity) voidsetModelId(Integer modelId) voidsetNoCache(Boolean noCache) voidvoidsetPageSize(Integer pageSize) voidsetResultsPerFunction(Integer resultsPerFunction) voidsetStatusOnly(Boolean statusOnly) statusOnly(Boolean statusOnly) toJson()Convert an instance of FunctionMatchingRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_MODEL_ID
- See Also:
-
SERIALIZED_NAME_FUNCTION_IDS
- See Also:
-
SERIALIZED_NAME_MIN_SIMILARITY
- See Also:
-
SERIALIZED_NAME_FILTERS
- See Also:
-
SERIALIZED_NAME_RESULTS_PER_FUNCTION
- See Also:
-
SERIALIZED_NAME_PAGE
- See Also:
-
SERIALIZED_NAME_PAGE_SIZE
- See Also:
-
SERIALIZED_NAME_STATUS_ONLY
- See Also:
-
SERIALIZED_NAME_NO_CACHE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
FunctionMatchingRequest
public FunctionMatchingRequest()
-
-
Method Details
-
modelId
-
getModelId
ID of the model used for function matching, used to determine the embedding model- Returns:
- modelId
-
setModelId
-
functionIds
-
addFunctionIdsItem
-
getFunctionIds
ID's of functions to find matches for, must be at least one function ID- Returns:
- functionIds
-
setFunctionIds
-
minSimilarity
-
getMinSimilarity
Minimum similarity expected for a match as a percentage, default is 90 minimum: 0.0 maximum: 100.0- Returns:
- minSimilarity
-
setMinSimilarity
-
filters
-
getFilters
Get filters- Returns:
- filters
-
setFilters
-
resultsPerFunction
-
getResultsPerFunction
Maximum number of matches to return per function, default is 1, max is 50 minimum: 1 maximum: 50- Returns:
- resultsPerFunction
-
setResultsPerFunction
-
page
-
getPage
Page number for paginated results, default is 1 (first page) minimum: 1- Returns:
- page
-
setPage
-
pageSize
-
getPageSize
Number of functions to return per page, default is 0 (all functions), max is 1000 minimum: 0 maximum: 1000- Returns:
- pageSize
-
setPageSize
-
statusOnly
-
getStatusOnly
If set to true, only returns the status of the matching operation without the actual results- Returns:
- statusOnly
-
setStatusOnly
-
noCache
-
getNoCache
If set to true, forces the system to bypass any cached results and perform a fresh computation- Returns:
- noCache
-
setNoCache
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the FunctionMatchingRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of FunctionMatchingRequest to an JSON string- Returns:
- JSON string
-