Builder

class Builder

Builder for creating instances of SearchResultMetadata.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard

Sets the average rating for the search result.

Link copied to clipboard

Builds an instance of SearchResultMetadata using the provided values.

Link copied to clipboard
fun children(children: List<ChildMetadata>?): SearchResultMetadata.Builder

Sets the child metadata for points of interest associated with the search result.

Link copied to clipboard

Sets the CPS-specific metadata as a JSON string.

Link copied to clipboard

Sets whether the location offers delivery services.

Link copied to clipboard

Sets the description of the search result.

Link copied to clipboard

Sets whether the location has a drive-through service.

Link copied to clipboard

Sets the email address associated with the location.

Link copied to clipboard

Sets the Facebook ID associated with the location.

Link copied to clipboard

Sets the fax number associated with the location.

Link copied to clipboard

Sets the Instagram handle associated with the location.

Link copied to clipboard

Sets the metadata for the search result.

Link copied to clipboard
fun openHours(openHours: OpenHours?): SearchResultMetadata.Builder

Sets the open hours information for the search result.

Link copied to clipboard
fun otherPhotos(otherPhotos: List<ImageInfo>?): SearchResultMetadata.Builder

Sets the list of other (non-primary) photos associated with the search result.

Link copied to clipboard
fun parking(parking: ParkingData?): SearchResultMetadata.Builder

Sets the parking information for the search result.

Link copied to clipboard

Sets whether parking is available at the location.

Link copied to clipboard

Sets the phone number associated with the search result.

Link copied to clipboard

Sets the popularity score of the location, scaled from 0 to 1.

Link copied to clipboard

Sets the price level of the location.

Link copied to clipboard
fun primaryPhotos(primaryPhotos: List<ImageInfo>?): SearchResultMetadata.Builder

Sets the list of primary photos associated with the search result.

Link copied to clipboard

Sets the rating of the location, on a scale from 1 to 5.

Link copied to clipboard

Sets whether the location accepts reservations.

Link copied to clipboard

Sets the review count for the search result.

Link copied to clipboard

Sets whether the location serves beer.

Link copied to clipboard

Sets whether the location serves breakfast.

Link copied to clipboard

Sets whether the location serves brunch.

Link copied to clipboard

Sets whether the location serves dinner.

Link copied to clipboard

Sets whether the location serves lunch.

Link copied to clipboard

Sets whether vegan options are available at the location.

Link copied to clipboard

Sets whether vegetarian options are available at the location.

Link copied to clipboard

Sets whether the location serves wine.

Link copied to clipboard

Sets whether street parking is available near the location.

Link copied to clipboard

Sets whether takeout services are available at the location.

Link copied to clipboard

Sets the Twitter handle associated with the location.

Link copied to clipboard

Sets whether valet parking is available at the location.

Link copied to clipboard

Sets the website associated with the search result.

Link copied to clipboard

Sets whether the location is wheelchair accessible.