Place.Builder

public abstract class Place.Builder


Builder for Place.

Summary

Public constructors

Public methods

Place

Builds the Place.

abstract @Nullable AccessibilityOptions
abstract @Nullable String
abstract @Nullable AddressComponents
abstract @Nullable String
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable List<String>
abstract @Nullable Place.BusinessStatus
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable OpeningHours
abstract @Nullable List<OpeningHours>
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable String
abstract @Nullable String
abstract @Nullable String
abstract @Nullable String
abstract @Nullable EVChargeOptions
abstract @Nullable String
abstract @Nullable FuelOptions
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable Uri
abstract @Nullable @ColorInt Integer
abstract @Nullable String
abstract @Nullable String
abstract @Nullable String
abstract @Nullable String
abstract @Nullable LatLng
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable LatLng
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable String
abstract @Nullable String
abstract @Nullable String
abstract @Nullable OpeningHours
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable ParkingOptions
abstract @Nullable PaymentOptions
abstract @Nullable String
abstract @Nullable List<PhotoMetadata>
abstract @Nullable List<String>
abstract @Nullable PlusCode
abstract @Nullable @IntRange(from = 0, to = 4) Integer
abstract @Nullable String
abstract @Nullable String
abstract @Nullable String
abstract @Nullable @FloatRange(from = 1.0, to = 5.0) Double
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable String
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable List<Review>
abstract @Nullable List<OpeningHours>
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable String
abstract @Nullable List<SubDestination>
abstract Place.BooleanPlaceAttributeValue
abstract @Nullable List<Place.Type>
abstract @Nullable @IntRange(from = 0) Integer
abstract @Nullable @IntRange(from = 0) Integer
abstract @Nullable Integer
abstract @Nullable LatLngBounds
abstract @Nullable Uri
abstract Place.BooleanPlaceAttributeValue
abstract Place.Builder
setAccessibilityOptions(
    @Nullable AccessibilityOptions accessibilityOptions
)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setAdrFormatAddress(@Nullable String adrFormatAddress)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setCurrentSecondaryOpeningHours(
    @Nullable List<OpeningHours> secondaryOpeningHours
)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setDisplayNameLanguageCode(@Nullable String displayNameLanguageCode)
abstract Place.Builder
setEditorialSummary(@Nullable String editorialSummary)
abstract Place.Builder
setEditorialSummaryLanguageCode(
    @Nullable String editorialSummaryLanguageCode
)
abstract Place.Builder
abstract Place.Builder
setFormattedAddress(@Nullable String formattedAddress)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setGoogleMapsUri(@Nullable Uri googleMapsUri)
abstract Place.Builder
setIconBackgroundColor(@Nullable Integer iconBackgroundColor)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setInternationalPhoneNumber(@Nullable String internationalPhoneNumber)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setNameLanguageCode(@Nullable String nameLanguageCode)
abstract Place.Builder
setNationalPhoneNumber(@Nullable String nationalPhoneNumber)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setPriceLevel(@Nullable @IntRange(from = 0, to = 4) Integer priceLevel)
abstract Place.Builder
abstract Place.Builder
setPrimaryTypeDisplayName(@Nullable String primaryTypeDisplayName)
abstract Place.Builder
setPrimaryTypeDisplayNameLanguageCode(
    @Nullable String primaryTypeDisplayNameLanguageCode
)
abstract Place.Builder
setRating(@Nullable @FloatRange(from = 1.0, to = 5.0) Double rating)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setSecondaryOpeningHours(
    @Nullable List<OpeningHours> secondaryOpeningHours
)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setShortFormattedAddress(@Nullable String shortFormattedAddress)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setUserRatingCount(@Nullable @IntRange(from = 0) Integer userRatingCount)
abstract Place.Builder
setUserRatingsTotal(@Nullable @IntRange(from = 0) Integer userRatingsTotal)
abstract Place.Builder
abstract Place.Builder
abstract Place.Builder
setWebsiteUri(@Nullable Uri websiteUri)
abstract Place.Builder

Public constructors

Builder

public Builder()

Public methods

build

public Place build()

Builds the Place.

Mutable members (e.g List) will be converted to immutable versions.

Throws
java.lang.IllegalArgumentException

If attributions contains null or empty values, or if any of the following values are out of range:

getAccessibilityOptions

public abstract @Nullable AccessibilityOptions getAccessibilityOptions()

getAddress

public abstract @Nullable String getAddress()

getAddressComponents

public abstract @Nullable AddressComponents getAddressComponents()

getAdrFormatAddress

public abstract @Nullable String getAdrFormatAddress()

getAllowsDogs

public abstract Place.BooleanPlaceAttributeValue getAllowsDogs()

getAttributions

public abstract @Nullable List<StringgetAttributions()

getBusinessStatus

public abstract @Nullable Place.BusinessStatus getBusinessStatus()

getCurbsidePickup

public abstract Place.BooleanPlaceAttributeValue getCurbsidePickup()

getCurrentOpeningHours

public abstract @Nullable OpeningHours getCurrentOpeningHours()

getCurrentSecondaryOpeningHours

public abstract @Nullable List<OpeningHoursgetCurrentSecondaryOpeningHours()

getDelivery

public abstract Place.BooleanPlaceAttributeValue getDelivery()

getDineIn

public abstract Place.BooleanPlaceAttributeValue getDineIn()

getDisplayName

public abstract @Nullable String getDisplayName()

getDisplayNameLanguageCode

public abstract @Nullable String getDisplayNameLanguageCode()

getEditorialSummary

public abstract @Nullable String getEditorialSummary()

getEditorialSummaryLanguageCode

public abstract @Nullable String getEditorialSummaryLanguageCode()

getEvChargeOptions

public abstract @Nullable EVChargeOptions getEvChargeOptions()

getFormattedAddress

public abstract @Nullable String getFormattedAddress()

getFuelOptions

public abstract @Nullable FuelOptions getFuelOptions()

getGoodForChildren

public abstract Place.BooleanPlaceAttributeValue getGoodForChildren()

getGoodForGroups

public abstract Place.BooleanPlaceAttributeValue getGoodForGroups()

getGoodForWatchingSports

public abstract Place.BooleanPlaceAttributeValue getGoodForWatchingSports()

getGoogleMapsUri

public abstract @Nullable Uri getGoogleMapsUri()

getIconBackgroundColor

public abstract @Nullable @ColorInt Integer getIconBackgroundColor()

getIconMaskUrl

public abstract @Nullable String getIconMaskUrl()

getIconUrl

public abstract @Nullable String getIconUrl()

getId

public abstract @Nullable String getId()

getInternationalPhoneNumber

public abstract @Nullable String getInternationalPhoneNumber()

getLatLng

public abstract @Nullable LatLng getLatLng()

getLiveMusic

public abstract Place.BooleanPlaceAttributeValue getLiveMusic()

getLocation

public abstract @Nullable LatLng getLocation()

getMenuForChildren

public abstract Place.BooleanPlaceAttributeValue getMenuForChildren()

getName

public abstract @Nullable String getName()

getNameLanguageCode

public abstract @Nullable String getNameLanguageCode()

getNationalPhoneNumber

public abstract @Nullable String getNationalPhoneNumber()

getOpeningHours

public abstract @Nullable OpeningHours getOpeningHours()

getOutdoorSeating

public abstract Place.BooleanPlaceAttributeValue getOutdoorSeating()

getParkingOptions

public abstract @Nullable ParkingOptions getParkingOptions()

getPaymentOptions

public abstract @Nullable PaymentOptions getPaymentOptions()

getPhoneNumber

public abstract @Nullable String getPhoneNumber()

getPhotoMetadatas

public abstract @Nullable List<PhotoMetadatagetPhotoMetadatas()

getPlaceTypes

public abstract @Nullable List<StringgetPlaceTypes()

getPlusCode

public abstract @Nullable PlusCode getPlusCode()

getPriceLevel

public abstract @Nullable @IntRange(from = 0, to = 4) Integer getPriceLevel()

getPrimaryType

public abstract @Nullable String getPrimaryType()

getPrimaryTypeDisplayName

public abstract @Nullable String getPrimaryTypeDisplayName()

getPrimaryTypeDisplayNameLanguageCode

public abstract @Nullable String getPrimaryTypeDisplayNameLanguageCode()

getRating

public abstract @Nullable @FloatRange(from = 1.0, to = 5.0) Double getRating()

getReservable

public abstract Place.BooleanPlaceAttributeValue getReservable()

getResourceName

public abstract @Nullable String getResourceName()

getRestroom

public abstract Place.BooleanPlaceAttributeValue getRestroom()

getReviews

public abstract @Nullable List<ReviewgetReviews()

getSecondaryOpeningHours

public abstract @Nullable List<OpeningHoursgetSecondaryOpeningHours()

getServesBeer

public abstract Place.BooleanPlaceAttributeValue getServesBeer()

getServesBreakfast

public abstract Place.BooleanPlaceAttributeValue getServesBreakfast()

getServesBrunch

public abstract Place.BooleanPlaceAttributeValue getServesBrunch()

getServesCocktails

public abstract Place.BooleanPlaceAttributeValue getServesCocktails()

getServesCoffee

public abstract Place.BooleanPlaceAttributeValue getServesCoffee()

getServesDessert

public abstract Place.BooleanPlaceAttributeValue getServesDessert()

getServesDinner

public abstract Place.BooleanPlaceAttributeValue getServesDinner()

getServesLunch

public abstract Place.BooleanPlaceAttributeValue getServesLunch()

getServesVegetarianFood

public abstract Place.BooleanPlaceAttributeValue getServesVegetarianFood()

getServesWine

public abstract Place.BooleanPlaceAttributeValue getServesWine()

getShortFormattedAddress

public abstract @Nullable String getShortFormattedAddress()

getSubDestinations

public abstract @Nullable List<SubDestinationgetSubDestinations()

getTakeout

public abstract Place.BooleanPlaceAttributeValue getTakeout()

getTypes

public abstract @Nullable List<Place.TypegetTypes()

getUserRatingCount

public abstract @Nullable @IntRange(from = 0) Integer getUserRatingCount()

getUserRatingsTotal

public abstract @Nullable @IntRange(from = 0) Integer getUserRatingsTotal()

getUtcOffsetMinutes

public abstract @Nullable Integer getUtcOffsetMinutes()

getViewport

public abstract @Nullable LatLngBounds getViewport()

getWebsiteUri

public abstract @Nullable Uri getWebsiteUri()

getWheelchairAccessibleEntrance

public abstract Place.BooleanPlaceAttributeValue getWheelchairAccessibleEntrance()

setAccessibilityOptions

public abstract Place.Builder setAccessibilityOptions(
    @Nullable AccessibilityOptions accessibilityOptions
)

setAddress

public abstract Place.Builder setAddress(@Nullable String address)

setAddressComponents

public abstract Place.Builder setAddressComponents(@Nullable AddressComponents addressComponents)

setAdrFormatAddress

public abstract Place.Builder setAdrFormatAddress(@Nullable String adrFormatAddress)

setAllowsDogs

public abstract Place.Builder setAllowsDogs(Place.BooleanPlaceAttributeValue allowsDogs)

setAttributions

public abstract Place.Builder setAttributions(@Nullable List<String> attributions)

setBusinessStatus

public abstract Place.Builder setBusinessStatus(@Nullable Place.BusinessStatus businessStatus)

setCurbsidePickup

public abstract Place.Builder setCurbsidePickup(Place.BooleanPlaceAttributeValue curbsidePickup)

setCurrentOpeningHours

public abstract Place.Builder setCurrentOpeningHours(@Nullable OpeningHours currentOpeningHours)

setCurrentSecondaryOpeningHours

public abstract Place.Builder setCurrentSecondaryOpeningHours(
    @Nullable List<OpeningHours> secondaryOpeningHours
)

setDelivery

public abstract Place.Builder setDelivery(Place.BooleanPlaceAttributeValue delivery)

setDineIn

public abstract Place.Builder setDineIn(Place.BooleanPlaceAttributeValue dineIn)

setDisplayName

public abstract Place.Builder setDisplayName(@Nullable String displayName)

setDisplayNameLanguageCode

public abstract Place.Builder setDisplayNameLanguageCode(@Nullable String displayNameLanguageCode)

setEditorialSummary

public abstract Place.Builder setEditorialSummary(@Nullable String editorialSummary)

setEditorialSummaryLanguageCode

public abstract Place.Builder setEditorialSummaryLanguageCode(
    @Nullable String editorialSummaryLanguageCode
)

setEvChargeOptions

public abstract Place.Builder setEvChargeOptions(@Nullable EVChargeOptions evChargeOptions)

setFormattedAddress

public abstract Place.Builder setFormattedAddress(@Nullable String formattedAddress)

setFuelOptions

public abstract Place.Builder setFuelOptions(@Nullable FuelOptions fuelOptions)

setGoodForChildren

public abstract Place.Builder setGoodForChildren(Place.BooleanPlaceAttributeValue goodForChildren)

setGoodForGroups

public abstract Place.Builder setGoodForGroups(Place.BooleanPlaceAttributeValue goodForGroups)

setGoodForWatchingSports

public abstract Place.Builder setGoodForWatchingSports(
    Place.BooleanPlaceAttributeValue goodForWatchingSports
)

setGoogleMapsUri

public abstract Place.Builder setGoogleMapsUri(@Nullable Uri googleMapsUri)

setIconBackgroundColor

public abstract Place.Builder setIconBackgroundColor(@Nullable Integer iconBackgroundColor)

setIconMaskUrl

public abstract Place.Builder setIconMaskUrl(@Nullable String iconUrl)

setIconUrl

public abstract Place.Builder setIconUrl(@Nullable String iconUrl)

setId

public abstract Place.Builder setId(@Nullable String id)

setInternationalPhoneNumber

public abstract Place.Builder setInternationalPhoneNumber(@Nullable String internationalPhoneNumber)

setLatLng

public abstract Place.Builder setLatLng(@Nullable LatLng latLng)

setLiveMusic

public abstract Place.Builder setLiveMusic(Place.BooleanPlaceAttributeValue liveMusic)

setLocation

public abstract Place.Builder setLocation(@Nullable LatLng location)

setMenuForChildren

public abstract Place.Builder setMenuForChildren(Place.BooleanPlaceAttributeValue menuForChildren)

setName

public abstract Place.Builder setName(@Nullable String name)

setNameLanguageCode

public abstract Place.Builder setNameLanguageCode(@Nullable String nameLanguageCode)

setNationalPhoneNumber

public abstract Place.Builder setNationalPhoneNumber(@Nullable String nationalPhoneNumber)

setOpeningHours

public abstract Place.Builder setOpeningHours(@Nullable OpeningHours openingHours)

setOutdoorSeating

public abstract Place.Builder setOutdoorSeating(Place.BooleanPlaceAttributeValue outdoorSeating)

setParkingOptions

public abstract Place.Builder setParkingOptions(@Nullable ParkingOptions parkingOptions)

setPaymentOptions

public abstract Place.Builder setPaymentOptions(@Nullable PaymentOptions paymentOptions)

setPhoneNumber

public abstract Place.Builder setPhoneNumber(@Nullable String phoneNumber)

setPhotoMetadatas

public abstract Place.Builder setPhotoMetadatas(@Nullable List<PhotoMetadata> photoMetadatas)

setPlaceTypes

public abstract Place.Builder setPlaceTypes(@Nullable List<String> placeTypes)

setPlusCode

public abstract Place.Builder setPlusCode(@Nullable PlusCode plusCode)

setPriceLevel

public abstract Place.Builder setPriceLevel(@Nullable @IntRange(from = 0, to = 4) Integer priceLevel)

setPrimaryType

public abstract Place.Builder setPrimaryType(@Nullable String primaryType)

setPrimaryTypeDisplayName

public abstract Place.Builder setPrimaryTypeDisplayName(@Nullable String primaryTypeDisplayName)

setPrimaryTypeDisplayNameLanguageCode

public abstract Place.Builder setPrimaryTypeDisplayNameLanguageCode(
    @Nullable String primaryTypeDisplayNameLanguageCode
)

setRating

public abstract Place.Builder setRating(@Nullable @FloatRange(from = 1.0, to = 5.0) Double rating)

setReservable

public abstract Place.Builder setReservable(Place.BooleanPlaceAttributeValue reservable)

setResourceName

public abstract Place.Builder setResourceName(@Nullable String resourceName)

setRestroom

public abstract Place.Builder setRestroom(Place.BooleanPlaceAttributeValue restroom)

setReviews

public abstract Place.Builder setReviews(@Nullable List<Review> reviews)

setSecondaryOpeningHours

public abstract Place.Builder setSecondaryOpeningHours(
    @Nullable List<OpeningHours> secondaryOpeningHours
)

setServesBeer

public abstract Place.Builder setServesBeer(Place.BooleanPlaceAttributeValue servesBeer)

setServesBreakfast

public abstract Place.Builder setServesBreakfast(Place.BooleanPlaceAttributeValue servesBreakfast)

setServesBrunch

public abstract Place.Builder setServesBrunch(Place.BooleanPlaceAttributeValue servesBrunch)

setServesCocktails

public abstract Place.Builder setServesCocktails(Place.BooleanPlaceAttributeValue servesCocktails)

setServesCoffee

public abstract Place.Builder setServesCoffee(Place.BooleanPlaceAttributeValue servesCoffee)

setServesDessert

public abstract Place.Builder setServesDessert(Place.BooleanPlaceAttributeValue servesDessert)

setServesDinner

public abstract Place.Builder setServesDinner(Place.BooleanPlaceAttributeValue servesDinner)

setServesLunch

public abstract Place.Builder setServesLunch(Place.BooleanPlaceAttributeValue servesLunch)

setServesVegetarianFood

public abstract Place.Builder setServesVegetarianFood(
    Place.BooleanPlaceAttributeValue servesVegetarianFood
)

setServesWine

public abstract Place.Builder setServesWine(Place.BooleanPlaceAttributeValue servesWine)

setShortFormattedAddress

public abstract Place.Builder setShortFormattedAddress(@Nullable String shortFormattedAddress)

setSubDestinations

public abstract Place.Builder setSubDestinations(@Nullable List<SubDestination> subDestinations)

setTakeout

public abstract Place.Builder setTakeout(Place.BooleanPlaceAttributeValue takeout)

setTypes

public abstract Place.Builder setTypes(@Nullable List<Place.Type> types)

setUserRatingCount

public abstract Place.Builder setUserRatingCount(@Nullable @IntRange(from = 0) Integer userRatingCount)

setUserRatingsTotal

public abstract Place.Builder setUserRatingsTotal(@Nullable @IntRange(from = 0) Integer userRatingsTotal)

setUtcOffsetMinutes

public abstract Place.Builder setUtcOffsetMinutes(@Nullable Integer utcOffsetMinutes)

setViewport

public abstract Place.Builder setViewport(@Nullable LatLngBounds viewport)

setWebsiteUri

public abstract Place.Builder setWebsiteUri(@Nullable Uri websiteUri)

setWheelchairAccessibleEntrance

public abstract Place.Builder setWheelchairAccessibleEntrance(
    Place.BooleanPlaceAttributeValue wheelchairAccessibleEntrance
)