public final class

LocalBusinessBuilder

extends IndexableBuilder<LocalBusinessBuilder>
java.lang.Object
   ↳ com.google.firebase.appindexing.builders.IndexableBuilder<com.google.firebase.appindexing.builders.LocalBusinessBuilder>
     ↳ com.google.firebase.appindexing.builders.LocalBusinessBuilder

Class Overview

Builder to construct an Indexable for a local business.

For reference, see: http://schema.org/LocalBusiness.

Summary

Public Methods
LocalBusinessBuilder setAddress(PostalAddressBuilder address)
Sets the physical address of the local business.
LocalBusinessBuilder setAggregateRating(AggregateRatingBuilder aggregateRating)
Sets the overall rating of the local business.
LocalBusinessBuilder setGeo(GeoShapeBuilder geoShape)
Sets the geo coordinates of the local business.
LocalBusinessBuilder setPriceRange(String priceRange)
Sets the price range of the local business.
LocalBusinessBuilder setTelephone(String telephone)
Sets the telephone number of the local business.
[Expand]
Inherited Methods
From class com.google.firebase.appindexing.builders.IndexableBuilder
From class java.lang.Object

Public Methods

public LocalBusinessBuilder setAddress (PostalAddressBuilder address)

Sets the physical address of the local business.

Parameters
address PostalAddressBuilder: The the physical address of the business.
Returns
LocalBusinessBuilder

public LocalBusinessBuilder setAggregateRating (AggregateRatingBuilder aggregateRating)

Sets the overall rating of the local business.

Parameters
aggregateRating AggregateRatingBuilder: The overall rating, based on a collection of reviews or ratings.
Returns
LocalBusinessBuilder

public LocalBusinessBuilder setGeo (GeoShapeBuilder geoShape)

Sets the geo coordinates of the local business.

Parameters
geoShape GeoShapeBuilder: The geo coordinates of the local business.
Returns
LocalBusinessBuilder

public LocalBusinessBuilder setPriceRange (String priceRange)

Sets the price range of the local business.

Parameters
priceRange String: The price range of the business. For example, "$11-30".
Returns
LocalBusinessBuilder

public LocalBusinessBuilder setTelephone (String telephone)

Sets the telephone number of the local business.

Parameters
telephone String: The telephone number of the business.
Returns
LocalBusinessBuilder