Package ai.shipeasy.admin.model
Class SearchHit
java.lang.Object
ai.shipeasy.admin.model.SearchHit
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class SearchHit
extends Object
A single universal-search hit. Field names are camelCase; `title` is `null` when the resource has no human title/display name (members fall back to a role label).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumResource family — drives the result group + icon in the palette. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SearchHitCreate an instance of SearchHit given an JSON stringgetHref()Project-relative href that opens the row (e.g.getId()Stable identifier used to deep-link into the row's detail pane.getName()The matched handle — the resource's immutable `name`, or the member's display name (falling back to email).getTitle()Human title/display name when present, else `null`.getType()Resource family — drives the result group + icon in the palette.inthashCode()voidvoidvoidvoidvoidsetType(SearchHit.TypeEnum type) toJson()Convert an instance of SearchHit to an JSON stringtoString()type(SearchHit.TypeEnum type) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_HREF
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SearchHit
public SearchHit()
-
-
Method Details
-
type
-
getType
Resource family — drives the result group + icon in the palette. (`member` hits are surfaced first.)- Returns:
- type
-
setType
-
id
-
getId
Stable identifier used to deep-link into the row's detail pane. For `member` hits this is the teammate's email; for everything else it is the resource id.- Returns:
- id
-
setId
-
name
-
getName
The matched handle — the resource's immutable `name`, or the member's display name (falling back to email).- Returns:
- name
-
setName
-
title
-
getTitle
Human title/display name when present, else `null`. For `member` hits this carries the email (or the `Owner`/`Member` role when no profile name is set).- Returns:
- title
-
setTitle
-
href
-
getHref
Project-relative href that opens the row (e.g. `/gates?open=<id>`).- Returns:
- href
-
setHref
-
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 SearchHit
-
fromJson
Create an instance of SearchHit given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SearchHit
- Throws:
IOException- if the JSON string is invalid with respect to SearchHit
-
toJson
Convert an instance of SearchHit to an JSON string- Returns:
- JSON string
-