public abstract class Closure extends DirectionsJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Closure.Builder
This builder can be used to set the values describing the
Closure. |
| Constructor and Description |
|---|
Closure() |
| Modifier and Type | Method and Description |
|---|---|
static Closure.Builder |
builder()
Create a new instance of this class by using the
Closure.Builder class. |
static Closure |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.Integer |
geometryIndexEnd()
Closure's leg-wise geometry index end point.
|
abstract java.lang.Integer |
geometryIndexStart()
Closure's leg-wise geometry index start point.
|
abstract Closure.Builder |
toBuilder()
Convert the current
Closure to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<Closure> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJson@NonNull @SerializedName(value="geometry_index_start") public abstract java.lang.Integer geometryIndexStart()
@NonNull @SerializedName(value="geometry_index_end") public abstract java.lang.Integer geometryIndexEnd()
public static Closure.Builder builder()
Closure.Builder class.Closure.Builder for creating a new instancepublic abstract Closure.Builder toBuilder()
Closure 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 Closure.Closure.Builder with the same values set to match the ones
defined in this Closurepublic static com.google.gson.TypeAdapter<Closure> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static Closure fromJson(java.lang.String json)
json - a formatted valid JSON string defining an Incident