public abstract class IntersectionLanes extends DirectionsJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
IntersectionLanes.Builder
This builder can be used to set the values describing the
IntersectionLanes. |
| Constructor and Description |
|---|
IntersectionLanes() |
| Modifier and Type | Method and Description |
|---|---|
abstract IntersectionLaneAccess |
access()
A
IntersectionLaneAccess object representing the access attributes of the lane. |
abstract java.lang.Boolean |
active()
Indicates whether this lane is a preferred lane (true) or not (false).
|
static IntersectionLanes.Builder |
builder()
Create a new instance of this class by using the
IntersectionLanes.Builder class. |
static IntersectionLanes |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.util.List<java.lang.String> |
indications()
Array that can be made up of multiple signs such as
left, right, etc. |
abstract java.util.List<java.lang.String> |
paymentMethods()
Available payment methods for the lane.
|
abstract IntersectionLanes.Builder |
toBuilder()
Convert the current
IntersectionLanes to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<IntersectionLanes> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract java.lang.Boolean |
valid()
Provides a boolean value you can use to determine if the given lane is valid for the user to
complete the maneuver.
|
abstract java.lang.String |
validIndication()
When either valid or active is set to true, this property shows which of the lane indications
is applicable to the current route, when there is more than one.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJsonpublic static IntersectionLanes.Builder builder()
IntersectionLanes.Builder class.IntersectionLanes.Builder for creating a new instance@Nullable public abstract java.lang.Boolean valid()
@Nullable public abstract java.lang.Boolean active()
@Nullable @SerializedName(value="valid_indication") public abstract java.lang.String validIndication()
@Nullable public abstract java.util.List<java.lang.String> indications()
left, right, etc.@Nullable @SerializedName(value="payment_methods") public abstract java.util.List<java.lang.String> paymentMethods()
DirectionsCriteria.PaymentMethodsCriteria@Nullable @SerializedName(value="access") public abstract IntersectionLaneAccess access()
IntersectionLaneAccess object representing the access attributes of the lane.
This can include information such as the vehicle types for which the lane is designated.public abstract IntersectionLanes.Builder toBuilder()
IntersectionLanes to its builder holding the currently assigned
values. This allows you to modify a single property and then rebuild the object resulting in
an updated and modified IntersectionLanes.IntersectionLanes.Builder with the same values set to match the ones defined
in this IntersectionLanespublic static com.google.gson.TypeAdapter<IntersectionLanes> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static IntersectionLanes fromJson(java.lang.String json)
json - a formatted valid JSON string defining an IntersectionLanes