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
Modifier and TypeMethodDescriptiondoubleDeprecated.Distance traveled during the step.com.google.protobuf.DurationDeprecated.Duration of the travel step.com.google.protobuf.DurationOrBuilderDeprecated.Duration of the travel step.Deprecated.The encoded polyline representation of the route followed during the step.Deprecated.The encoded polyline representation of the route followed during the step.booleanDeprecated.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.booleanDeprecated.Duration of the travel step.booleanDeprecated.The encoded polyline representation of the route followed during the step.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.
-
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;
-