Interface ShipmentRoute.TravelStepOrBuilder (1.76.0)

publicstaticinterface ShipmentRoute.TravelStepOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getDistanceMeters() (deprecated)

publicabstractdoublegetDistanceMeters()

Distance traveled during the step.

double distance_meters = 2;

Returns
Type Description
double

The distanceMeters.

getDuration() (deprecated)

publicabstractDurationgetDuration()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
Type Description
Duration

The duration.

getDurationOrBuilder() (deprecated)

publicabstractDurationOrBuildergetDurationOrBuilder()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
Type Description
DurationOrBuilder

getRoutePolyline() (deprecated)

publicabstractShipmentRoute.EncodedPolylinegetRoutePolyline()

The encoded polyline representation of the route followed during the step.

This field is only populated if OptimizeToursRequest.populate_travel_step_polylines is set to true.

.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;

Returns
Type Description
ShipmentRoute.EncodedPolyline

The routePolyline.

getRoutePolylineOrBuilder() (deprecated)

publicabstractShipmentRoute.EncodedPolylineOrBuildergetRoutePolylineOrBuilder()

The encoded polyline representation of the route followed during the step.

This field is only populated if OptimizeToursRequest.populate_travel_step_polylines is set to true.

.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;

Returns
Type Description
ShipmentRoute.EncodedPolylineOrBuilder

getTrafficInfoUnavailable() (deprecated)

publicabstractbooleangetTrafficInfoUnavailable()

When traffic is requested via 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
Type Description
boolean

The trafficInfoUnavailable.

hasDuration() (deprecated)

publicabstractbooleanhasDuration()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
Type Description
boolean

Whether the duration field is set.

hasRoutePolyline() (deprecated)

publicabstractbooleanhasRoutePolyline()

The encoded polyline representation of the route followed during the step.

This field is only populated if OptimizeToursRequest.populate_travel_step_polylines is set to true.

.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;

Returns
Type Description
boolean

Whether the routePolyline field is set.

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.