Place.Builder

public static abstract class Place.Builder extends Object

Builder for Place.

Public Constructor Summary

Public Method Summary

Place
build()
Builds the Place.
abstract Place.Builder
setAddress(String address)
abstract Place.Builder
abstract Place.Builder
setAttributions(List<String> attributions)
abstract Place.Builder
abstract Place.Builder
setLatLng(LatLng latLng)
abstract Place.Builder
setName(String name)
abstract Place.Builder
abstract Place.Builder
setPhoneNumber(String phoneNumber)
abstract Place.Builder
abstract Place.Builder
setPlusCode(PlusCode plusCode)
abstract Place.Builder
setPriceLevel(Integer priceLevel)
abstract Place.Builder
setRating(Double rating)
abstract Place.Builder
abstract Place.Builder
setUserRatingsTotal(Integer userRatingsTotal)
abstract Place.Builder
setUtcOffsetMinutes(Integer utcOffsetMinutes)
abstract Place.Builder
abstract Place.Builder
setWebsiteUri(Uri websiteUri)

Inherited Method Summary

Public Constructors

public Place.Builder ()

Public Methods

public Place build ()

Builds the Place.

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

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

public abstract Place.Builder setAddress (String address)

Parameters
address

public abstract Place.Builder setAddressComponents (AddressComponents addressComponents)

Parameters
addressComponents

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

Parameters
attributions

public abstract Place.Builder setId (String id)

Parameters
id

public abstract Place.Builder setLatLng (LatLng latLng)

Parameters
latLng

public abstract Place.Builder setName (String name)

Parameters
name

public abstract Place.Builder setOpeningHours (OpeningHours openingHours)

Parameters
openingHours

public abstract Place.Builder setPhoneNumber (String phoneNumber)

Parameters
phoneNumber

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

Parameters
photoMetadatas

public abstract Place.Builder setPlusCode (PlusCode plusCode)

Parameters
plusCode

public abstract Place.Builder setPriceLevel (Integer priceLevel)

Parameters
priceLevel

public abstract Place.Builder setRating (Double rating)

Parameters
rating

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

Parameters
types

public abstract Place.Builder setUserRatingsTotal (Integer userRatingsTotal)

Parameters
userRatingsTotal

public abstract Place.Builder setUtcOffsetMinutes (Integer utcOffsetMinutes)

Parameters
utcOffsetMinutes

public abstract Place.Builder setViewport (LatLngBounds viewport)

Parameters
viewport

public abstract Place.Builder setWebsiteUri (Uri websiteUri)

Parameters
websiteUri