java.lang.Object
java.lang.Record
net.ygbstudio.jbrave.core.domain.dto.result.search.WebQuery
Record Components:
original - The original query string.
altered - The altered query string.
cleaned - The cleaned query string.
showStrictWarning - Indicates if a strict warning should be shown.
safeSearch - Indicates if the search is safe.
isNavigational - Indicates if the query is navigational.
isGeolocal - Indicates if the query is geolocal.
localDecision - The local decision.
localLocationsIdx - The local locations index.
isTrending - Indicates if the query is trending.
isNewsBreaking - Indicates if the query is news breaking.
askForLocation - Indicates if a location should be asked.
language - The language of the query.
spellcheckOff - Indicates if spell checking is off.
country - The country of the query.
badResults - Indicates if the results are bad.
shouldFallback - Indicates if the query should fallback.
lat - The latitude.
lon - The longitude.
postalCode - The postal code.
city - The city.
state - The state.
headerCountry - The country in the header.
moreResultsAvailable - Indicates if more results are available.
customLocationLabel - The custom location label.
redditCluster - The Reddit cluster.
summaryKey - The summary key.
searchOperators - The search operators.

public record WebQuery(String original, String altered, String cleaned, Boolean showStrictWarning, Boolean safeSearch, Boolean isNavigational, Boolean isGeolocal, String localDecision, Integer localLocationsIdx, Boolean isTrending, Boolean isNewsBreaking, Boolean askForLocation, Language language, Boolean spellcheckOff, String country, Boolean badResults, Boolean shouldFallback, String lat, String lon, String postalCode, String city, String state, String headerCountry, Boolean moreResultsAvailable, String customLocationLabel, String redditCluster, String summaryKey, SearchOperators searchOperators) extends Record
Represents web query information in search results. This class provides structured data about web queries in the Brave Search API results.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • original

      public String original()
      Returns the value of the original record component.
      Returns:
      the value of the original record component
    • altered

      public String altered()
      Returns the value of the altered record component.
      Returns:
      the value of the altered record component
    • cleaned

      public String cleaned()
      Returns the value of the cleaned record component.
      Returns:
      the value of the cleaned record component
    • showStrictWarning

      public Boolean showStrictWarning()
      Returns the value of the showStrictWarning record component.
      Returns:
      the value of the showStrictWarning record component
    • safeSearch

      public Boolean safeSearch()
      Returns the value of the safeSearch record component.
      Returns:
      the value of the safeSearch record component
    • isNavigational

      public Boolean isNavigational()
      Returns the value of the isNavigational record component.
      Returns:
      the value of the isNavigational record component
    • isGeolocal

      public Boolean isGeolocal()
      Returns the value of the isGeolocal record component.
      Returns:
      the value of the isGeolocal record component
    • localDecision

      public String localDecision()
      Returns the value of the localDecision record component.
      Returns:
      the value of the localDecision record component
    • localLocationsIdx

      public Integer localLocationsIdx()
      Returns the value of the localLocationsIdx record component.
      Returns:
      the value of the localLocationsIdx record component
    • isTrending

      public Boolean isTrending()
      Returns the value of the isTrending record component.
      Returns:
      the value of the isTrending record component
    • isNewsBreaking

      public Boolean isNewsBreaking()
      Returns the value of the isNewsBreaking record component.
      Returns:
      the value of the isNewsBreaking record component
    • askForLocation

      public Boolean askForLocation()
      Returns the value of the askForLocation record component.
      Returns:
      the value of the askForLocation record component
    • language

      public Language language()
      Returns the value of the language record component.
      Returns:
      the value of the language record component
    • spellcheckOff

      public Boolean spellcheckOff()
      Returns the value of the spellcheckOff record component.
      Returns:
      the value of the spellcheckOff record component
    • country

      public String country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • badResults

      public Boolean badResults()
      Returns the value of the badResults record component.
      Returns:
      the value of the badResults record component
    • shouldFallback

      public Boolean shouldFallback()
      Returns the value of the shouldFallback record component.
      Returns:
      the value of the shouldFallback record component
    • lat

      public String lat()
      Returns the value of the lat record component.
      Returns:
      the value of the lat record component
    • lon

      public String lon()
      Returns the value of the lon record component.
      Returns:
      the value of the lon record component
    • postalCode

      public String postalCode()
      Returns the value of the postalCode record component.
      Returns:
      the value of the postalCode record component
    • city

      public String city()
      Returns the value of the city record component.
      Returns:
      the value of the city record component
    • state

      public String state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • headerCountry

      public String headerCountry()
      Returns the value of the headerCountry record component.
      Returns:
      the value of the headerCountry record component
    • moreResultsAvailable

      public Boolean moreResultsAvailable()
      Returns the value of the moreResultsAvailable record component.
      Returns:
      the value of the moreResultsAvailable record component
    • customLocationLabel

      public String customLocationLabel()
      Returns the value of the customLocationLabel record component.
      Returns:
      the value of the customLocationLabel record component
    • redditCluster

      public String redditCluster()
      Returns the value of the redditCluster record component.
      Returns:
      the value of the redditCluster record component
    • summaryKey

      public String summaryKey()
      Returns the value of the summaryKey record component.
      Returns:
      the value of the summaryKey record component
    • searchOperators

      public SearchOperators searchOperators()
      Returns the value of the searchOperators record component.
      Returns:
      the value of the searchOperators record component