public abstract static class BannerView.Builder
extends java.lang.Object
BannerView.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract BannerView |
build()
Build a new
BannerView object. |
abstract BannerView.Builder |
components(java.util.List<BannerComponents> components)
A part or element of the
BannerInstructions. |
abstract BannerView.Builder |
modifier(java.lang.String modifier)
This indicates the mode of the maneuver.
|
abstract BannerView.Builder |
text(java.lang.String text)
Plain text with all the
BannerComponents text combined. |
abstract BannerView.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 BannerView.Builder text(@NonNull java.lang.String text)
BannerComponents text combined.text - plain text with all the BannerComponents text items combinedpublic abstract BannerView.Builder components(java.util.List<BannerComponents> components)
BannerInstructions.components - a BannerComponents specific to a LegSteppublic abstract BannerView.Builder type(@Nullable java.lang.String type)
BannerView.type() for a full list of
options.type - String with type of maneuverStepManeuver.StepManeuverTypepublic abstract BannerView.Builder modifier(@Nullable java.lang.String modifier)
modifier - String with modifierpublic abstract BannerView build()
BannerView object.BannerView 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