Enum Vehicle.TravelMode (1.14.0)

publicenumVehicle.TravelModeextendsEnum<Vehicle.TravelMode>implementsProtocolMessageEnum

Travel modes which can be used by vehicles. These should be a subset of the Google Maps Platform Routes Preferred API travel modes, see: https://developers.google.com/maps/documentation/routes_preferred/reference/rest/Shared.Types/RouteTravelMode.

Protobuf enum google.cloud.optimization.v1.Vehicle.TravelMode

Implements

ProtocolMessageEnum

Static Fields

Name Description
DRIVING

Travel mode corresponding to driving directions (car, ...).

DRIVING = 1;

DRIVING_VALUE

Travel mode corresponding to driving directions (car, ...).

DRIVING = 1;

TRAVEL_MODE_UNSPECIFIED

Unspecified travel mode, equivalent to DRIVING.

TRAVEL_MODE_UNSPECIFIED = 0;

TRAVEL_MODE_UNSPECIFIED_VALUE

Unspecified travel mode, equivalent to DRIVING.

TRAVEL_MODE_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.