public abstract class VoiceInstructions extends DirectionsJsonObject
Modifier and Type | Class and Description |
---|---|
static class |
VoiceInstructions.Builder
This builder can be used to set the values describing the
VoiceInstructions . |
Constructor and Description |
---|
VoiceInstructions() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
announcement()
Provides the instruction string which was build on the server-side and can sometimes
concatenate instructions together if maneuver instructions are too close to each other.
|
static VoiceInstructions.Builder |
builder()
Create a new instance of this class by using the
VoiceInstructions.Builder class. |
abstract java.lang.Double |
distanceAlongGeometry()
This provides the missing piece in which is needed to announce instructions at accurate
times.
|
static VoiceInstructions |
fromJson(java.lang.String json)
Create a new instance of this class by passing in a formatted valid JSON String.
|
abstract java.lang.String |
ssmlAnnouncement()
Get the same instruction string you'd get from
announcement() but this one includes
Speech Synthesis Markup Language which helps voice synthesiser read information more humanely. |
abstract VoiceInstructions.Builder |
toBuilder()
Convert the current
VoiceInstructions to its builder holding the currently assigned
values. |
static com.google.gson.TypeAdapter<VoiceInstructions> |
typeAdapter(com.google.gson.Gson gson)
Gson type adapter for parsing Gson to this class.
|
toJson
public static VoiceInstructions.Builder builder()
VoiceInstructions.Builder
class.VoiceInstructions.Builder
for creating a new instance@Nullable public abstract java.lang.Double distanceAlongGeometry()
distanceAlongGeometry()
than, the announcement should be called.@Nullable public abstract java.lang.String announcement()
@Nullable public abstract java.lang.String ssmlAnnouncement()
announcement()
but this one includes
Speech Synthesis Markup Language which helps voice synthesiser read information more humanely.public abstract VoiceInstructions.Builder toBuilder()
VoiceInstructions
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 VoiceInstructions
.VoiceInstructions.Builder
with the same values set to match the ones defined
in this VoiceInstructions
public static com.google.gson.TypeAdapter<VoiceInstructions> typeAdapter(com.google.gson.Gson gson)
gson
- the built Gson
objectpublic static VoiceInstructions fromJson(java.lang.String json)
json
- a formatted valid JSON string defining a VoiceInstructions