public abstract class Metadata extends DirectionsJsonObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Metadata.Builder
This builder can be used to set the values describing the
Metadata. |
| Constructor and Description |
|---|
Metadata() |
| Modifier and Type | Method and Description |
|---|---|
static Metadata.Builder |
builder()
Create a new instance of this class by using the
Metadata.Builder class. |
static Metadata |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.util.Map<java.lang.String,java.lang.String> |
infoMap()
Map containing a key/value pair of all the properties inside `map` json element including
map sources, version information etc.
|
abstract Metadata.Builder |
toBuilder()
Convert the current
Metadata to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<Metadata> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
getUnrecognizedJsonProperties, getUnrecognizedPropertiesNames, getUnrecognizedProperty, toJsonpublic static Metadata.Builder builder()
Metadata.Builder class.Metadata.Builder for creating a new instance@Nullable @SerializedName(value="map") public abstract java.util.Map<java.lang.String,java.lang.String> infoMap()
public abstract Metadata.Builder toBuilder()
Metadata 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 Metadata.Metadata.Builder with the same values set to match the ones defined
in this Metadatapublic static com.google.gson.TypeAdapter<Metadata> typeAdapter(com.google.gson.Gson gson)
gson - the built Gson objectpublic static Metadata fromJson(java.lang.String json)
json - a formatted valid JSON string defining a Metadata