Class SearchResponse

java.lang.Object
dev.cachly.api.model.SearchResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-04-17T00:43:25.074268745Z[Etc/UTC]", comments="Generator version: 7.5.0") public class SearchResponse extends Object
SearchResponse
  • Field Details

  • Constructor Details

    • SearchResponse

      public SearchResponse()
  • Method Details

    • found

      public SearchResponse found(Boolean found)
    • getFound

      @Nullable public Boolean getFound()
      Get found
      Returns:
      found
    • setFound

      public void setFound(Boolean found)
    • id

      public SearchResponse id(UUID id)
    • getId

      @Nullable public UUID getId()
      Only present on cache hit
      Returns:
      id
    • setId

      public void setId(UUID id)
    • similarity

      public SearchResponse similarity(BigDecimal similarity)
    • getSimilarity

      @Nullable public BigDecimal getSimilarity()
      Cosine similarity score (only on hit)
      Returns:
      similarity
    • setSimilarity

      public void setSimilarity(BigDecimal similarity)
    • thresholdUsed

      public SearchResponse thresholdUsed(BigDecimal thresholdUsed)
    • getThresholdUsed

      @Nullable public BigDecimal getThresholdUsed()
      Get thresholdUsed
      Returns:
      thresholdUsed
    • setThresholdUsed

      public void setThresholdUsed(BigDecimal thresholdUsed)
    • equals

      public boolean equals(Object o)
      Return true if this SearchResponse object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

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

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

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string