public abstract class Congestion extends DirectionsJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Congestion.Builder
This builder can be used to set the values describing the
Congestion. |
| Constructor and Description |
|---|
Congestion() |
| Modifier and Type | Method and Description |
|---|---|
static Congestion.Builder |
builder()
Create a new instance of this class by using the
Congestion.Builder class. |
static Congestion |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract Congestion.Builder |
toBuilder()
Convert the current
Congestion to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<Congestion> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
abstract int |
value()
Quantitative descriptor of congestion.
|
toJsonpublic abstract int value()
public static Congestion.Builder builder()
Congestion.Builder class.Congestion.Builder for creating a new instancepublic abstract Congestion.Builder toBuilder()
Congestion 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 Congestion.Congestion.Builder with the same values set to match the ones defined in this
Congestionpublic static com.google.gson.TypeAdapter<Congestion> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static Congestion fromJson(java.lang.String json)
json - a formatted valid JSON string defining an Congestion