public abstract class DirectionsError
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
DirectionsError.Builder
This builder can be used to set the values describing the
DirectionsError . |
Constructor and Description |
---|
DirectionsError() |
Modifier and Type | Method and Description |
---|---|
static DirectionsError.Builder |
builder()
Create a new instance of this class by using the
DirectionsError.Builder class. |
abstract java.lang.String |
code()
String indicating the state of the response.
|
abstract java.lang.String |
message()
Provides a short message with the explanation of the invalid input.
|
abstract DirectionsError.Builder |
toBuilder()
Convert the current
DirectionsError to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<DirectionsError> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
public static DirectionsError.Builder builder()
DirectionsError.Builder
class.DirectionsError.Builder
for creating a new instance@Nullable public abstract java.lang.String code()
@Nullable public abstract java.lang.String message()
public abstract DirectionsError.Builder toBuilder()
DirectionsError
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 DirectionsError
.DirectionsError.Builder
with the same values set to match the ones defined
in this DirectionsError
public static com.google.gson.TypeAdapter<DirectionsError> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
object