Record Class WebQuery
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.- 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 Summary
ConstructorsConstructorDescriptionWebQuery(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) Creates an instance of aWebQueryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaltered()Returns the value of thealteredrecord component.Returns the value of theaskForLocationrecord component.Returns the value of thebadResultsrecord component.city()Returns the value of thecityrecord component.cleaned()Returns the value of thecleanedrecord component.country()Returns the value of thecountryrecord component.Returns the value of thecustomLocationLabelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theheaderCountryrecord component.Returns the value of theisGeolocalrecord component.Returns the value of theisNavigationalrecord component.Returns the value of theisNewsBreakingrecord component.Returns the value of theisTrendingrecord component.language()Returns the value of thelanguagerecord component.lat()Returns the value of thelatrecord component.Returns the value of thelocalDecisionrecord component.Returns the value of thelocalLocationsIdxrecord component.lon()Returns the value of thelonrecord component.Returns the value of themoreResultsAvailablerecord component.original()Returns the value of theoriginalrecord component.Returns the value of thepostalCoderecord component.Returns the value of theredditClusterrecord component.Returns the value of thesafeSearchrecord component.Returns the value of thesearchOperatorsrecord component.Returns the value of theshouldFallbackrecord component.Returns the value of theshowStrictWarningrecord component.Returns the value of thespellcheckOffrecord component.state()Returns the value of thestaterecord component.Returns the value of thesummaryKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WebQuery
public 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) Creates an instance of aWebQueryrecord class.- Parameters:
original- the value for theoriginalrecord componentaltered- the value for thealteredrecord componentcleaned- the value for thecleanedrecord componentshowStrictWarning- the value for theshowStrictWarningrecord componentsafeSearch- the value for thesafeSearchrecord componentisNavigational- the value for theisNavigationalrecord componentisGeolocal- the value for theisGeolocalrecord componentlocalDecision- the value for thelocalDecisionrecord componentlocalLocationsIdx- the value for thelocalLocationsIdxrecord componentisTrending- the value for theisTrendingrecord componentisNewsBreaking- the value for theisNewsBreakingrecord componentaskForLocation- the value for theaskForLocationrecord componentlanguage- the value for thelanguagerecord componentspellcheckOff- the value for thespellcheckOffrecord componentcountry- the value for thecountryrecord componentbadResults- the value for thebadResultsrecord componentshouldFallback- the value for theshouldFallbackrecord componentlat- the value for thelatrecord componentlon- the value for thelonrecord componentpostalCode- the value for thepostalCoderecord componentcity- the value for thecityrecord componentstate- the value for thestaterecord componentheaderCountry- the value for theheaderCountryrecord componentmoreResultsAvailable- the value for themoreResultsAvailablerecord componentcustomLocationLabel- the value for thecustomLocationLabelrecord componentredditCluster- the value for theredditClusterrecord componentsummaryKey- the value for thesummaryKeyrecord componentsearchOperators- the value for thesearchOperatorsrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
original
Returns the value of theoriginalrecord component.- Returns:
- the value of the
originalrecord component
-
altered
Returns the value of thealteredrecord component.- Returns:
- the value of the
alteredrecord component
-
cleaned
Returns the value of thecleanedrecord component.- Returns:
- the value of the
cleanedrecord component
-
showStrictWarning
Returns the value of theshowStrictWarningrecord component.- Returns:
- the value of the
showStrictWarningrecord component
-
safeSearch
Returns the value of thesafeSearchrecord component.- Returns:
- the value of the
safeSearchrecord component
-
isGeolocal
Returns the value of theisGeolocalrecord component.- Returns:
- the value of the
isGeolocalrecord component
-
localDecision
Returns the value of thelocalDecisionrecord component.- Returns:
- the value of the
localDecisionrecord component
-
localLocationsIdx
Returns the value of thelocalLocationsIdxrecord component.- Returns:
- the value of the
localLocationsIdxrecord component
-
isTrending
Returns the value of theisTrendingrecord component.- Returns:
- the value of the
isTrendingrecord component
-
isNewsBreaking
Returns the value of theisNewsBreakingrecord component.- Returns:
- the value of the
isNewsBreakingrecord component
-
askForLocation
Returns the value of theaskForLocationrecord component.- Returns:
- the value of the
askForLocationrecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
spellcheckOff
Returns the value of thespellcheckOffrecord component.- Returns:
- the value of the
spellcheckOffrecord component
-
country
Returns the value of thecountryrecord component.- Returns:
- the value of the
countryrecord component
-
badResults
Returns the value of thebadResultsrecord component.- Returns:
- the value of the
badResultsrecord component
-
shouldFallback
Returns the value of theshouldFallbackrecord component.- Returns:
- the value of the
shouldFallbackrecord component
-
lat
Returns the value of thelatrecord component.- Returns:
- the value of the
latrecord component
-
lon
Returns the value of thelonrecord component.- Returns:
- the value of the
lonrecord component
-
postalCode
Returns the value of thepostalCoderecord component.- Returns:
- the value of the
postalCoderecord component
-
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
headerCountry
Returns the value of theheaderCountryrecord component.- Returns:
- the value of the
headerCountryrecord component
-
moreResultsAvailable
Returns the value of themoreResultsAvailablerecord component.- Returns:
- the value of the
moreResultsAvailablerecord component
-
customLocationLabel
Returns the value of thecustomLocationLabelrecord component.- Returns:
- the value of the
customLocationLabelrecord component
-
redditCluster
Returns the value of theredditClusterrecord component.- Returns:
- the value of the
redditClusterrecord component
-
summaryKey
Returns the value of thesummaryKeyrecord component.- Returns:
- the value of the
summaryKeyrecord component
-
searchOperators
Returns the value of thesearchOperatorsrecord component.- Returns:
- the value of the
searchOperatorsrecord component
-