Package ai.shipeasy.admin.model
Class SearchResponse
java.lang.Object
ai.shipeasy.admin.model.SearchResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SearchResponse
extends Object
Flat, ranked-by-type list of search hits the command palette groups for display. Capped per resource family so one noisy type can't crowd out the rest.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHitsItem(SearchHit hitsItem) booleanstatic SearchResponseCreate an instance of SearchResponse given an JSON stringgetHits()Get hitsinthashCode()voidtoJson()Convert an instance of SearchResponse 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_HITS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SearchResponse
public SearchResponse()
-
-
Method Details
-
hits
-
addHitsItem
-
getHits
Get hits- Returns:
- hits
-
setHits
-
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 SearchResponse
-
fromJson
Create an instance of SearchResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SearchResponse
- Throws:
IOException- if the JSON string is invalid with respect to SearchResponse
-
toJson
Convert an instance of SearchResponse to an JSON string- Returns:
- JSON string
-