Class NewEnrichmentItemFactory
- java.lang.Object
-
- com.google.photos.library.v1.util.NewEnrichmentItemFactory
-
public final class NewEnrichmentItemFactory extends java.lang.ObjectFactory class to create differentNewEnrichmentItems.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NewEnrichmentItemcreateLocationEnrichment(java.lang.String locationName, double latitude, double longitude)Creates aNewEnrichmentItemwith aLocationEnrichment.static NewEnrichmentItemcreateMapEnrichment(java.lang.String originLocationName, double originLatitude, double originLongitude, java.lang.String destinationLocationName, double destinationLatitude, double destinationLongitude)Creates aNewEnrichmentItemwith aMapEnrichment.static NewEnrichmentItemcreateTextEnrichment(java.lang.String text)Creates aNewEnrichmentItemwith aTextEnrichment.
-
-
-
Method Detail
-
createTextEnrichment
public static final NewEnrichmentItem createTextEnrichment(java.lang.String text)
Creates aNewEnrichmentItemwith aTextEnrichment.
-
createLocationEnrichment
public static final NewEnrichmentItem createLocationEnrichment(java.lang.String locationName, double latitude, double longitude)
Creates aNewEnrichmentItemwith aLocationEnrichment.- Throws:
java.lang.IllegalArgumentException- Thrown if the location name is null or empty.
-
createMapEnrichment
public static final NewEnrichmentItem createMapEnrichment(java.lang.String originLocationName, double originLatitude, double originLongitude, java.lang.String destinationLocationName, double destinationLatitude, double destinationLongitude)
Creates aNewEnrichmentItemwith aMapEnrichment.- Throws:
java.lang.IllegalArgumentException- Thrown if the origin or destination location names are either null or empty.
-
-