Package com.google.cloud.optimization.v1
Interface ShipmentRoute.TravelStepOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ShipmentRoute.TravelStep
,ShipmentRoute.TravelStep.Builder
- Enclosing class:
- ShipmentRoute
@Deprecated public static interface ShipmentRoute.TravelStepOrBuilder extends com.google.protobuf.MessageOrBuilder
Deprecated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description double
getDistanceMeters()
Deprecated.Distance traveled during the step.com.google.protobuf.Duration
getDuration()
Deprecated.Duration of the travel step.com.google.protobuf.DurationOrBuilder
getDurationOrBuilder()
Deprecated.Duration of the travel step.ShipmentRoute.EncodedPolyline
getRoutePolyline()
Deprecated.The encoded polyline representation of the route followed during the step.ShipmentRoute.EncodedPolylineOrBuilder
getRoutePolylineOrBuilder()
Deprecated.The encoded polyline representation of the route followed during the step.boolean
getTrafficInfoUnavailable()
Deprecated.When traffic is requested via [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], and the traffic info couldn't be retrieved for a TravelStep, this boolean is set to true.boolean
hasDuration()
Deprecated.Duration of the travel step.boolean
hasRoutePolyline()
Deprecated.The encoded polyline representation of the route followed during the step.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasDuration
boolean hasDuration()
Deprecated.Duration of the travel step.
.google.protobuf.Duration duration = 1;
- Returns:
- Whether the duration field is set.
-
getDuration
com.google.protobuf.Duration getDuration()
Deprecated.Duration of the travel step.
.google.protobuf.Duration duration = 1;
- Returns:
- The duration.
-
getDurationOrBuilder
com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Deprecated.Duration of the travel step.
.google.protobuf.Duration duration = 1;
-
getDistanceMeters
double getDistanceMeters()
Deprecated.Distance traveled during the step.
double distance_meters = 2;
- Returns:
- The distanceMeters.
-
getTrafficInfoUnavailable
boolean getTrafficInfoUnavailable()
Deprecated.When traffic is requested via [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], and the traffic info couldn't be retrieved for a TravelStep, this boolean is set to true. This may be temporary (rare hiccup in the realtime traffic servers) or permanent (no data for this location).
bool traffic_info_unavailable = 3;
- Returns:
- The trafficInfoUnavailable.
-
hasRoutePolyline
boolean hasRoutePolyline()
Deprecated.The encoded polyline representation of the route followed during the step. This field is only populated if [OptimizeToursRequest.populate_travel_step_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;
- Returns:
- Whether the routePolyline field is set.
-
getRoutePolyline
ShipmentRoute.EncodedPolyline getRoutePolyline()
Deprecated.The encoded polyline representation of the route followed during the step. This field is only populated if [OptimizeToursRequest.populate_travel_step_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;
- Returns:
- The routePolyline.
-
getRoutePolylineOrBuilder
ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder()
Deprecated.The encoded polyline representation of the route followed during the step. This field is only populated if [OptimizeToursRequest.populate_travel_step_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;
-
-