SearchByTextRequest.Builder

public abstract class SearchByTextRequest.Builder


Builder for SearchByTextRequest.

Summary

Public constructors

Public methods

SearchByTextRequest
abstract @Nullable CancellationToken
abstract @Nullable String
abstract @Nullable LocationBias
abstract @Nullable LocationRestriction
abstract @Nullable Integer
abstract @Nullable Double
abstract List<Place.Field>
abstract List<Integer>
abstract @Nullable SearchByTextRequest.RankPreference
abstract String
abstract String
abstract boolean
abstract boolean
abstract SearchByTextRequest.Builder
abstract SearchByTextRequest.Builder
abstract SearchByTextRequest.Builder
abstract SearchByTextRequest.Builder
setLocationRestriction(
    @Nullable LocationRestriction locationRestriction
)
abstract SearchByTextRequest.Builder
abstract SearchByTextRequest.Builder
setMinRating(
    @Nullable @FloatRange(from = Place.RATING_MIN_VALUE, to = Place.RATING_MAX_VALUE) Double minRating
)
abstract SearchByTextRequest.Builder
setOpenNow(boolean openNow)
abstract SearchByTextRequest.Builder
abstract SearchByTextRequest.Builder
setPriceLevels(List<Integer> priceLevels)
abstract SearchByTextRequest.Builder
abstract SearchByTextRequest.Builder
setRegionCode(String regionCode)
abstract SearchByTextRequest.Builder
setStrictTypeFiltering(boolean strictTypeFiltering)
abstract SearchByTextRequest.Builder
setTextQuery(String textQuery)

Public constructors

Builder

public Builder()

Public methods

build

public SearchByTextRequest build()

getCancellationToken

public abstract @Nullable CancellationToken getCancellationToken()

getIncludedType

public abstract @Nullable String getIncludedType()

getLocationBias

public abstract @Nullable LocationBias getLocationBias()

getLocationRestriction

public abstract @Nullable LocationRestriction getLocationRestriction()

getMaxResultCount

public abstract @Nullable Integer getMaxResultCount()

getMinRating

public abstract @Nullable Double getMinRating()

getPlaceFields

public abstract List<Place.FieldgetPlaceFields()

getPriceLevels

public abstract List<IntegergetPriceLevels()

getRankPreference

public abstract @Nullable SearchByTextRequest.RankPreference getRankPreference()

getRegionCode

public abstract String getRegionCode()

getTextQuery

public abstract String getTextQuery()

isOpenNow

public abstract boolean isOpenNow()

isStrictTypeFiltering

public abstract boolean isStrictTypeFiltering()

setCancellationToken

public abstract SearchByTextRequest.Builder setCancellationToken(@Nullable CancellationToken cancellationToken)

setIncludedType

public abstract SearchByTextRequest.Builder setIncludedType(@Nullable String includedType)

setLocationBias

public abstract SearchByTextRequest.Builder setLocationBias(@Nullable LocationBias locationBias)

setLocationRestriction

public abstract SearchByTextRequest.Builder setLocationRestriction(
    @Nullable LocationRestriction locationRestriction
)

setMaxResultCount

public abstract SearchByTextRequest.Builder setMaxResultCount(@Nullable Integer maxResultCount)

setMinRating

public abstract SearchByTextRequest.Builder setMinRating(
    @Nullable @FloatRange(from = Place.RATING_MIN_VALUE, to = Place.RATING_MAX_VALUE) Double minRating
)

setOpenNow

public abstract SearchByTextRequest.Builder setOpenNow(boolean openNow)

setPlaceFields

public abstract SearchByTextRequest.Builder setPlaceFields(List<Place.Field> placeFields)

setPriceLevels

public abstract SearchByTextRequest.Builder setPriceLevels(List<Integer> priceLevels)

setRankPreference

public abstract SearchByTextRequest.Builder setRankPreference(
    @Nullable SearchByTextRequest.RankPreference rankPreference
)

setRegionCode

public abstract SearchByTextRequest.Builder setRegionCode(String regionCode)

setStrictTypeFiltering

public abstract SearchByTextRequest.Builder setStrictTypeFiltering(boolean strictTypeFiltering)

setTextQuery

public abstract SearchByTextRequest.Builder setTextQuery(String textQuery)