Interface ShipmentRoute.TravelStepOrBuilder (1.40.0)

public static interface ShipmentRoute.TravelStepOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDistanceMeters() (deprecated)

public abstract double getDistanceMeters()

Distance traveled during the step.

double distance_meters = 2;

Returns
Type Description
double

The distanceMeters.

getDuration() (deprecated)

public abstract Duration getDuration()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
Type Description
Duration

The duration.

getDurationOrBuilder() (deprecated)

public abstract DurationOrBuilder getDurationOrBuilder()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
Type Description
DurationOrBuilder

getRoutePolyline() (deprecated)

public abstract ShipmentRoute.EncodedPolyline getRoutePolyline()

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)

public abstract ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder()

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)

public abstract boolean getTrafficInfoUnavailable()

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)

public abstract boolean hasDuration()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
Type Description
boolean

Whether the duration field is set.

hasRoutePolyline() (deprecated)

public abstract boolean hasRoutePolyline()

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.