TrafficModel class
Specifies the assumptions to use when calculating time in traffic. This
setting affects the value returned in the duration
field in the
response, which contains the predicted time in traffic based on historical
averages.
- Inheritance
-
- Object
- ProtobufEnum
- TrafficModel
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
This enum's name, as specified in the .proto file.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
This enum's integer value, as specified in the .proto file.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns this enum's
name
or thevalue
if names are not represented.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
int value) → TrafficModel?
Constants
- BEST_GUESS → const TrafficModel
- OPTIMISTIC → const TrafficModel
- PESSIMISTIC → const TrafficModel
- TRAFFIC_MODEL_UNSPECIFIED → const TrafficModel
-
values
→ const List<
TrafficModel>