public abstract class IntersectionLaneAccess extends DirectionsJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
IntersectionLaneAccess.Builder
This builder can be used to set the values describing the
IntersectionLaneAccess. |
static interface |
IntersectionLaneAccess.LaneDesignatedVehicleType
Represents the allowed vehicle types for a designated lane.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BICYCLE
Indicates lanes that is designated to bicycles.
|
static java.lang.String |
BUS
Indicates lanes that is designated to buses.
|
static java.lang.String |
HOV
Indicates High-occupancy vehicle lanes.
|
static java.lang.String |
MOPED
Indicates lanes that is designated to mopeds.
|
static java.lang.String |
MOTORCYCLE
Indicates lanes that is designated to motorcycles.
|
static java.lang.String |
TAXI
Indicates lanes that is designated to taxis.
|
| Constructor and Description |
|---|
IntersectionLaneAccess() |
| Modifier and Type | Method and Description |
|---|---|
static IntersectionLaneAccess.Builder |
builder()
Create a new instance of this class by using the
IntersectionLaneAccess.Builder class. |
abstract java.util.List<java.lang.String> |
designated()
Indicates whether a lane is designated to specified vehicle types.
|
static IntersectionLaneAccess |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract IntersectionLaneAccess.Builder |
toBuilder()
Convert the current
IntersectionLaneAccess to its builder holding the
currently assigned values. |
static com.google.gson.TypeAdapter<IntersectionLaneAccess> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJsonpublic static final java.lang.String BICYCLE
public static final java.lang.String BUS
public static final java.lang.String HOV
public static final java.lang.String MOPED
public static final java.lang.String MOTORCYCLE
public static final java.lang.String TAXI
@Nullable @SerializedName(value="designated") public abstract java.util.List<java.lang.String> designated()
IntersectionLaneAccess.LaneDesignatedVehicleType, such as BICYCLE,
BUS, HOV, MOPED, MOTORCYCLE, or TAXI.
For example, when a lane is designated to buses and taxis, this list should have
BUS and TAXI as its values.IntersectionLaneAccess.LaneDesignatedVehicleTypepublic abstract IntersectionLaneAccess.Builder toBuilder()
IntersectionLaneAccess 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 IntersectionLaneAccess.IntersectionLaneAccess.Builder with the same values set to match the ones
defined in this IntersectionLaneAccesspublic static IntersectionLaneAccess.Builder builder()
IntersectionLaneAccess.Builder class.IntersectionLaneAccess.Builder for creating a new instancepublic static com.google.gson.TypeAdapter<IntersectionLaneAccess> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static IntersectionLaneAccess fromJson(java.lang.String json)
json - a formatted valid JSON string defining an IntersectionLaneAccess