Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract MaxSpeed |
build()
Build a new
MaxSpeed object. |
abstract MaxSpeed.Builder |
none(java.lang.Boolean none)
Boolean is `true` if the speed limit is unlimited, otherwise null.
|
abstract MaxSpeed.Builder |
speed(java.lang.Integer speed)
Number indicating the posted speed limit.
|
abstract MaxSpeed.Builder |
unit(java.lang.String unit)
String indicating the unit of speed, either as `km/h` or `mph`.
|
abstract MaxSpeed.Builder |
unknown(java.lang.Boolean unknown)
Boolean is true if the speed limit is not known, otherwise null.
|
T |
unrecognizedJsonProperties(java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
Use this method to add parameters which are not present in the model yet but are supported
on the Directions API side in the response.
|
public abstract MaxSpeed.Builder speed(@Nullable java.lang.Integer speed)
speed
- indicating the posted speed limitMaxSpeed.Builder
objectpublic abstract MaxSpeed.Builder unit(@Nullable java.lang.String unit)
unit
- either as `km/h` or `mph`MaxSpeed.Builder
objectpublic abstract MaxSpeed.Builder unknown(@Nullable java.lang.Boolean unknown)
unknown
- true if speed limit is not known, otherwise nullMaxSpeed.Builder
objectpublic abstract MaxSpeed.Builder none(@Nullable java.lang.Boolean none)
none
- true if speed limit is unlimited, otherwise nullMaxSpeed.Builder
objectpublic abstract MaxSpeed build()
MaxSpeed
object.MaxSpeed
using the provided values in this builder@NonNull public T unrecognizedJsonProperties(@Nullable java.util.Map<java.lang.String,com.google.gson.JsonElement> unrecognizedProperties)
unrecognizedProperties
- parameters to add to request