public abstract static class BannerInstructions.Builder
extends java.lang.Object
BannerInstructions.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract BannerInstructions |
build()
Build a new
BannerInstructions object. |
abstract BannerInstructions.Builder |
distanceAlongGeometry(double distanceAlongGeometry)
Distance in meters from the beginning of the step at which the visual instruction should be
visible.
|
abstract BannerInstructions.Builder |
primary(BannerText primary)
Main visual information about the
LegStep. |
abstract BannerInstructions.Builder |
secondary(BannerText secondary)
Ancillary visual information about the
LegStep. |
abstract BannerInstructions.Builder |
sub(BannerText sub)
Additional information that is included
if we feel the driver needs a heads up about something.
|
T |
unrecognizedJsonProperties(java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
Use this method to add parameters which are not present in the model yet but are supported
on the Directions API side in the response.
|
abstract BannerInstructions.Builder |
view(BannerView view)
Optional image to display for an upcoming maneuver.
|
public abstract BannerInstructions.Builder distanceAlongGeometry(double distanceAlongGeometry)
distanceAlongGeometry - double value representing the length from the steps first point
to where the banner instruction should be displayedpublic abstract BannerInstructions.Builder primary(@NonNull BannerText primary)
LegStep.primary - BannerText representing the primary visual informationpublic abstract BannerInstructions.Builder secondary(@Nullable BannerText secondary)
LegStep.secondary - BannerText representing the secondary visual informationpublic abstract BannerInstructions.Builder sub(@Nullable BannerText sub)
sub - BannerText representing the sub visual informationBannerText representing the sub visual informationpublic abstract BannerInstructions.Builder view(@Nullable BannerView view)
view - BannerView representing the sub visual informationpublic abstract BannerInstructions build()
BannerInstructions object.BannerInstructions using the provided values in this builder@NonNull
public T unrecognizedJsonProperties(@Nullable
java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
unrecognizedProperties - parameters to add to request