public abstract static class BannerText.Builder
extends java.lang.Object
BannerText.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract BannerText |
build()
Build a new
BannerText object. |
abstract BannerText.Builder |
components(java.util.List<BannerComponents> components)
A part or element of the
BannerInstructions. |
abstract BannerText.Builder |
degrees(java.lang.Double degrees)
The degrees at which you will be exiting a roundabout, assuming `180` indicates
going straight through the roundabout.
|
abstract BannerText.Builder |
drivingSide(java.lang.String drivingSide)
A string representing which side the of the street people drive on in
that location.
|
abstract BannerText.Builder |
modifier(java.lang.String modifier)
This indicates the mode of the maneuver.
|
abstract BannerText.Builder |
text(java.lang.String text)
Plain text with all the
BannerComponents text combined. |
abstract BannerText.Builder |
type(java.lang.String type)
This indicates the type of maneuver.
|
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.
|
public abstract BannerText.Builder text(@NonNull java.lang.String text)
BannerComponents text combined.text - plain text with all the BannerComponents text items combinedpublic abstract BannerText.Builder components(java.util.List<BannerComponents> components)
BannerInstructions.components - a BannerComponents specific to a LegSteppublic abstract BannerText.Builder type(@Nullable java.lang.String type)
BannerText.type() for a full list of
options.type - String with type of maneuverStepManeuver.StepManeuverTypepublic abstract BannerText.Builder modifier(@Nullable java.lang.String modifier)
modifier - String with modifierpublic abstract BannerText.Builder degrees(java.lang.Double degrees)
degrees - at which you will be exiting a roundaboutpublic abstract BannerText.Builder drivingSide(@Nullable java.lang.String drivingSide)
drivingSide - either `left` or `right`public abstract BannerText build()
BannerText object.BannerText 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