Interface ShipmentRoute.TravelStepOrBuilder (1.1.2)

public static interface ShipmentRoute.TravelStepOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDistanceMeters()

public abstract double getDistanceMeters()

Distance traveled during the step.

double distance_meters = 2;

Returns
TypeDescription
double

The distanceMeters.

getDuration()

public abstract Duration getDuration()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
Duration

The duration.

getDurationOrBuilder()

public abstract DurationOrBuilder getDurationOrBuilder()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
DurationOrBuilder

getRoutePolyline()

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
TypeDescription
ShipmentRoute.EncodedPolyline

The routePolyline.

getRoutePolylineOrBuilder()

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
TypeDescription
ShipmentRoute.EncodedPolylineOrBuilder

getTrafficInfoUnavailable()

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
TypeDescription
boolean

The trafficInfoUnavailable.

hasDuration()

public abstract boolean hasDuration()

Duration of the travel step.

.google.protobuf.Duration duration = 1;

Returns
TypeDescription
boolean

Whether the duration field is set.

hasRoutePolyline()

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
TypeDescription
boolean

Whether the routePolyline field is set.