- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
public static final class ShipmentRoute.Transition.Builder extends GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder> implements ShipmentRoute.TransitionOrBuilder
Transition between two events on the route. See the description of
ShipmentRoute.
If the vehicle does not have a start_location
and/or end_location
, the
corresponding travel metrics are 0.
Protobuf type google.cloud.optimization.v1.ShipmentRoute.Transition
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ShipmentRoute.Transition.BuilderImplements
ShipmentRoute.TransitionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllLoads(Iterable<? extends CapacityQuantity> values)
public ShipmentRoute.Transition.Builder addAllLoads(Iterable<? extends CapacityQuantity> values)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
values | Iterable<? extends com.google.cloud.optimization.v1.CapacityQuantity> |
Type | Description |
ShipmentRoute.Transition.Builder |
addLoads(CapacityQuantity value)
public ShipmentRoute.Transition.Builder addLoads(CapacityQuantity value)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Transition.Builder |
addLoads(CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Transition.Builder addLoads(CapacityQuantity.Builder builderForValue)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
addLoads(int index, CapacityQuantity value)
public ShipmentRoute.Transition.Builder addLoads(int index, CapacityQuantity value)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Transition.Builder |
addLoads(int index, CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Transition.Builder addLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
addLoadsBuilder()
public CapacityQuantity.Builder addLoadsBuilder()
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Type | Description |
CapacityQuantity.Builder |
addLoadsBuilder(int index)
public CapacityQuantity.Builder addLoadsBuilder(int index)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ShipmentRoute.Transition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ShipmentRoute.Transition.Builder |
build()
public ShipmentRoute.Transition build()
Type | Description |
ShipmentRoute.Transition |
buildPartial()
public ShipmentRoute.Transition buildPartial()
Type | Description |
ShipmentRoute.Transition |
clear()
public ShipmentRoute.Transition.Builder clear()
Type | Description |
ShipmentRoute.Transition.Builder |
clearBreakDuration()
public ShipmentRoute.Transition.Builder clearBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Type | Description |
ShipmentRoute.Transition.Builder |
clearDelayDuration()
public ShipmentRoute.Transition.Builder clearDelayDuration()
Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration
seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
ShipmentRoute.Transition.Builder |
clearField(Descriptors.FieldDescriptor field)
public ShipmentRoute.Transition.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ShipmentRoute.Transition.Builder |
clearLoads()
public ShipmentRoute.Transition.Builder clearLoads()
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Type | Description |
ShipmentRoute.Transition.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ShipmentRoute.Transition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ShipmentRoute.Transition.Builder |
clearRoutePolyline()
public ShipmentRoute.Transition.Builder clearRoutePolyline()
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Type | Description |
ShipmentRoute.Transition.Builder |
clearStartTime()
public ShipmentRoute.Transition.Builder clearStartTime()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Type | Description |
ShipmentRoute.Transition.Builder |
clearTotalDuration()
public ShipmentRoute.Transition.Builder clearTotalDuration()
Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time
(orvehicle_end_time
if this is the last transition) - this transition'sstart_time
; - if
ShipmentRoute.has_traffic_infeasibilities
is false, the following additionally holds:total_duration = travel_duration + delay_duration
- break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Type | Description |
ShipmentRoute.Transition.Builder |
clearTrafficInfoUnavailable()
public ShipmentRoute.Transition.Builder clearTrafficInfoUnavailable()
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 Transition
, 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;
Type | Description |
ShipmentRoute.Transition.Builder | This builder for chaining. |
clearTravelDistanceMeters()
public ShipmentRoute.Transition.Builder clearTravelDistanceMeters()
Distance traveled during the transition.
double travel_distance_meters = 2;
Type | Description |
ShipmentRoute.Transition.Builder | This builder for chaining. |
clearTravelDuration()
public ShipmentRoute.Transition.Builder clearTravelDuration()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Type | Description |
ShipmentRoute.Transition.Builder |
clearVehicleLoads()
public ShipmentRoute.Transition.Builder clearVehicleLoads()
Type | Description |
ShipmentRoute.Transition.Builder |
clearWaitDuration()
public ShipmentRoute.Transition.Builder clearWaitDuration()
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Type | Description |
ShipmentRoute.Transition.Builder |
clone()
public ShipmentRoute.Transition.Builder clone()
Type | Description |
ShipmentRoute.Transition.Builder |
containsVehicleLoads(String key)
public boolean containsVehicleLoads(String key)
Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands
are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
Name | Description |
key | String |
Type | Description |
boolean |
getBreakDuration()
public Duration getBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Type | Description |
Duration | The breakDuration. |
getBreakDurationBuilder()
public Duration.Builder getBreakDurationBuilder()
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Type | Description |
Builder |
getBreakDurationOrBuilder()
public DurationOrBuilder getBreakDurationOrBuilder()
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Type | Description |
DurationOrBuilder |
getDefaultInstanceForType()
public ShipmentRoute.Transition getDefaultInstanceForType()
Type | Description |
ShipmentRoute.Transition |
getDelayDuration()
public Duration getDelayDuration()
Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration
seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
Duration | The delayDuration. |
getDelayDurationBuilder()
public Duration.Builder getDelayDurationBuilder()
Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration
seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
Builder |
getDelayDurationOrBuilder()
public DurationOrBuilder getDelayDurationOrBuilder()
Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration
seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
DurationOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLoads(int index)
public CapacityQuantity getLoads(int index)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity |
getLoadsBuilder(int index)
public CapacityQuantity.Builder getLoadsBuilder(int index)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity.Builder |
getLoadsBuilderList()
public List<CapacityQuantity.Builder> getLoadsBuilderList()
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Type | Description |
List<Builder> |
getLoadsCount()
public int getLoadsCount()
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Type | Description |
int |
getLoadsList()
public List<CapacityQuantity> getLoadsList()
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Type | Description |
List<CapacityQuantity> |
getLoadsOrBuilder(int index)
public CapacityQuantityOrBuilder getLoadsOrBuilder(int index)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantityOrBuilder |
getLoadsOrBuilderList()
public List<? extends CapacityQuantityOrBuilder> getLoadsOrBuilderList()
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Type | Description |
List<? extends com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> |
getMutableVehicleLoads()
public Map<String,ShipmentRoute.VehicleLoad> getMutableVehicleLoads()
Use alternate mutation accessors instead.
Type | Description |
Map<String,VehicleLoad> |
getRoutePolyline()
public ShipmentRoute.EncodedPolyline getRoutePolyline()
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Type | Description |
ShipmentRoute.EncodedPolyline | The routePolyline. |
getRoutePolylineBuilder()
public ShipmentRoute.EncodedPolyline.Builder getRoutePolylineBuilder()
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Type | Description |
ShipmentRoute.EncodedPolyline.Builder |
getRoutePolylineOrBuilder()
public ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder()
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Type | Description |
ShipmentRoute.EncodedPolylineOrBuilder |
getStartTime()
public Timestamp getStartTime()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Type | Description |
Timestamp | The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Type | Description |
Builder |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Type | Description |
TimestampOrBuilder |
getTotalDuration()
public Duration getTotalDuration()
Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time
(orvehicle_end_time
if this is the last transition) - this transition'sstart_time
; - if
ShipmentRoute.has_traffic_infeasibilities
is false, the following additionally holds:total_duration = travel_duration + delay_duration
- break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Type | Description |
Duration | The totalDuration. |
getTotalDurationBuilder()
public Duration.Builder getTotalDurationBuilder()
Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time
(orvehicle_end_time
if this is the last transition) - this transition'sstart_time
; - if
ShipmentRoute.has_traffic_infeasibilities
is false, the following additionally holds:total_duration = travel_duration + delay_duration
- break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Type | Description |
Builder |
getTotalDurationOrBuilder()
public DurationOrBuilder getTotalDurationOrBuilder()
Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time
(orvehicle_end_time
if this is the last transition) - this transition'sstart_time
; - if
ShipmentRoute.has_traffic_infeasibilities
is false, the following additionally holds:total_duration = travel_duration + delay_duration
- break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Type | Description |
DurationOrBuilder |
getTrafficInfoUnavailable()
public boolean getTrafficInfoUnavailable()
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 Transition
, 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;
Type | Description |
boolean | The trafficInfoUnavailable. |
getTravelDistanceMeters()
public double getTravelDistanceMeters()
Distance traveled during the transition.
double travel_distance_meters = 2;
Type | Description |
double | The travelDistanceMeters. |
getTravelDuration()
public Duration getTravelDuration()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Type | Description |
Duration | The travelDuration. |
getTravelDurationBuilder()
public Duration.Builder getTravelDurationBuilder()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Type | Description |
Builder |
getTravelDurationOrBuilder()
public DurationOrBuilder getTravelDurationOrBuilder()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Type | Description |
DurationOrBuilder |
getVehicleLoads()
public Map<String,ShipmentRoute.VehicleLoad> getVehicleLoads()
Use #getVehicleLoadsMap() instead.
Type | Description |
Map<String,VehicleLoad> |
getVehicleLoadsCount()
public int getVehicleLoadsCount()
Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands
are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
Type | Description |
int |
getVehicleLoadsMap()
public Map<String,ShipmentRoute.VehicleLoad> getVehicleLoadsMap()
Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands
are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
Type | Description |
Map<String,VehicleLoad> |
getVehicleLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
public ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands
are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
Name | Description |
key | String |
defaultValue | ShipmentRoute.VehicleLoad |
Type | Description |
ShipmentRoute.VehicleLoad |
getVehicleLoadsOrThrow(String key)
public ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow(String key)
Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands
are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
Name | Description |
key | String |
Type | Description |
ShipmentRoute.VehicleLoad |
getWaitDuration()
public Duration getWaitDuration()
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Type | Description |
Duration | The waitDuration. |
getWaitDurationBuilder()
public Duration.Builder getWaitDurationBuilder()
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Type | Description |
Builder |
getWaitDurationOrBuilder()
public DurationOrBuilder getWaitDurationOrBuilder()
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Type | Description |
DurationOrBuilder |
hasBreakDuration()
public boolean hasBreakDuration()
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Type | Description |
boolean | Whether the breakDuration field is set. |
hasDelayDuration()
public boolean hasDelayDuration()
Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration
seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Type | Description |
boolean | Whether the delayDuration field is set. |
hasRoutePolyline()
public boolean hasRoutePolyline()
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Type | Description |
boolean | Whether the routePolyline field is set. |
hasStartTime()
public boolean hasStartTime()
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Type | Description |
boolean | Whether the startTime field is set. |
hasTotalDuration()
public boolean hasTotalDuration()
Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time
(orvehicle_end_time
if this is the last transition) - this transition'sstart_time
; - if
ShipmentRoute.has_traffic_infeasibilities
is false, the following additionally holds:total_duration = travel_duration + delay_duration
- break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Type | Description |
boolean | Whether the totalDuration field is set. |
hasTravelDuration()
public boolean hasTravelDuration()
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Type | Description |
boolean | Whether the travelDuration field is set. |
hasWaitDuration()
public boolean hasWaitDuration()
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Type | Description |
boolean | Whether the waitDuration field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBreakDuration(Duration value)
public ShipmentRoute.Transition.Builder mergeBreakDuration(Duration value)
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeDelayDuration(Duration value)
public ShipmentRoute.Transition.Builder mergeDelayDuration(Duration value)
Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration
seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeFrom(ShipmentRoute.Transition other)
public ShipmentRoute.Transition.Builder mergeFrom(ShipmentRoute.Transition other)
Name | Description |
other | ShipmentRoute.Transition |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ShipmentRoute.Transition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ShipmentRoute.Transition.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ShipmentRoute.Transition.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeRoutePolyline(ShipmentRoute.EncodedPolyline value)
public ShipmentRoute.Transition.Builder mergeRoutePolyline(ShipmentRoute.EncodedPolyline value)
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Name | Description |
value | ShipmentRoute.EncodedPolyline |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeStartTime(Timestamp value)
public ShipmentRoute.Transition.Builder mergeStartTime(Timestamp value)
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Name | Description |
value | Timestamp |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeTotalDuration(Duration value)
public ShipmentRoute.Transition.Builder mergeTotalDuration(Duration value)
Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time
(orvehicle_end_time
if this is the last transition) - this transition'sstart_time
; - if
ShipmentRoute.has_traffic_infeasibilities
is false, the following additionally holds:total_duration = travel_duration + delay_duration
- break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeTravelDuration(Duration value)
public ShipmentRoute.Transition.Builder mergeTravelDuration(Duration value)
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentRoute.Transition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ShipmentRoute.Transition.Builder |
mergeWaitDuration(Duration value)
public ShipmentRoute.Transition.Builder mergeWaitDuration(Duration value)
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
putAllVehicleLoads(Map<String,ShipmentRoute.VehicleLoad> values)
public ShipmentRoute.Transition.Builder putAllVehicleLoads(Map<String,ShipmentRoute.VehicleLoad> values)
Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands
are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
Name | Description |
values | Map<String,VehicleLoad> |
Type | Description |
ShipmentRoute.Transition.Builder |
putVehicleLoads(String key, ShipmentRoute.VehicleLoad value)
public ShipmentRoute.Transition.Builder putVehicleLoads(String key, ShipmentRoute.VehicleLoad value)
Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands
are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
Name | Description |
key | String |
value | ShipmentRoute.VehicleLoad |
Type | Description |
ShipmentRoute.Transition.Builder |
removeLoads(int index)
public ShipmentRoute.Transition.Builder removeLoads(int index)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
Type | Description |
ShipmentRoute.Transition.Builder |
removeVehicleLoads(String key)
public ShipmentRoute.Transition.Builder removeVehicleLoads(String key)
Vehicle loads during this transition, for each type that either appears
in this vehicle's Vehicle.load_limits, or that have non-zero
Shipment.load_demands on some shipment performed on this route.
The loads during the first transition are the starting loads of the
vehicle route. Then, after each visit, the visit's load_demands
are
either added or subtracted to get the next transition's loads, depending
on whether the visit was a pickup or a delivery.
map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
Name | Description |
key | String |
Type | Description |
ShipmentRoute.Transition.Builder |
setBreakDuration(Duration value)
public ShipmentRoute.Transition.Builder setBreakDuration(Duration value)
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
setBreakDuration(Duration.Builder builderForValue)
public ShipmentRoute.Transition.Builder setBreakDuration(Duration.Builder builderForValue)
Sum of the duration of the breaks occurring during this transition, if any. Details about each break's start time and duration are stored in ShipmentRoute.breaks.
.google.protobuf.Duration break_duration = 5;
Name | Description |
builderForValue | Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
setDelayDuration(Duration value)
public ShipmentRoute.Transition.Builder setDelayDuration(Duration value)
Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration
seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
setDelayDuration(Duration.Builder builderForValue)
public ShipmentRoute.Transition.Builder setDelayDuration(Duration.Builder builderForValue)
Sum of the delay durations applied to this transition. If any, the delay
starts exactly delay_duration
seconds before the next event (visit or
vehicle end). See
TransitionAttributes.delay.
.google.protobuf.Duration delay_duration = 4;
Name | Description |
builderForValue | Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ShipmentRoute.Transition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ShipmentRoute.Transition.Builder |
setLoads(int index, CapacityQuantity value)
public ShipmentRoute.Transition.Builder setLoads(int index, CapacityQuantity value)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Transition.Builder |
setLoads(int index, CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Transition.Builder setLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated: Use [Transition.vehicle_loads][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
Name | Description |
index | int |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ShipmentRoute.Transition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ShipmentRoute.Transition.Builder |
setRoutePolyline(ShipmentRoute.EncodedPolyline value)
public ShipmentRoute.Transition.Builder setRoutePolyline(ShipmentRoute.EncodedPolyline value)
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Name | Description |
value | ShipmentRoute.EncodedPolyline |
Type | Description |
ShipmentRoute.Transition.Builder |
setRoutePolyline(ShipmentRoute.EncodedPolyline.Builder builderForValue)
public ShipmentRoute.Transition.Builder setRoutePolyline(ShipmentRoute.EncodedPolyline.Builder builderForValue)
The encoded polyline representation of the route followed during the transition. This field is only populated if [populate_transition_polylines] [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
Name | Description |
builderForValue | ShipmentRoute.EncodedPolyline.Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
setStartTime(Timestamp value)
public ShipmentRoute.Transition.Builder setStartTime(Timestamp value)
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Name | Description |
value | Timestamp |
Type | Description |
ShipmentRoute.Transition.Builder |
setStartTime(Timestamp.Builder builderForValue)
public ShipmentRoute.Transition.Builder setStartTime(Timestamp.Builder builderForValue)
Start time of this transition.
.google.protobuf.Timestamp start_time = 8;
Name | Description |
builderForValue | Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
setTotalDuration(Duration value)
public ShipmentRoute.Transition.Builder setTotalDuration(Duration value)
Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time
(orvehicle_end_time
if this is the last transition) - this transition'sstart_time
; - if
ShipmentRoute.has_traffic_infeasibilities
is false, the following additionally holds:total_duration = travel_duration + delay_duration
- break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
setTotalDuration(Duration.Builder builderForValue)
public ShipmentRoute.Transition.Builder setTotalDuration(Duration.Builder builderForValue)
Total duration of the transition, provided for convenience. It is equal to:
- next visit
start_time
(orvehicle_end_time
if this is the last transition) - this transition'sstart_time
; - if
ShipmentRoute.has_traffic_infeasibilities
is false, the following additionally holds:total_duration = travel_duration + delay_duration
- break_duration + wait_duration.
.google.protobuf.Duration total_duration = 7;
Name | Description |
builderForValue | Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
setTrafficInfoUnavailable(boolean value)
public ShipmentRoute.Transition.Builder setTrafficInfoUnavailable(boolean value)
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 Transition
, 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;
Name | Description |
value | boolean The trafficInfoUnavailable to set. |
Type | Description |
ShipmentRoute.Transition.Builder | This builder for chaining. |
setTravelDistanceMeters(double value)
public ShipmentRoute.Transition.Builder setTravelDistanceMeters(double value)
Distance traveled during the transition.
double travel_distance_meters = 2;
Name | Description |
value | double The travelDistanceMeters to set. |
Type | Description |
ShipmentRoute.Transition.Builder | This builder for chaining. |
setTravelDuration(Duration value)
public ShipmentRoute.Transition.Builder setTravelDuration(Duration value)
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
setTravelDuration(Duration.Builder builderForValue)
public ShipmentRoute.Transition.Builder setTravelDuration(Duration.Builder builderForValue)
Travel duration during this transition.
.google.protobuf.Duration travel_duration = 1;
Name | Description |
builderForValue | Builder |
Type | Description |
ShipmentRoute.Transition.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentRoute.Transition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ShipmentRoute.Transition.Builder |
setWaitDuration(Duration value)
public ShipmentRoute.Transition.Builder setWaitDuration(Duration value)
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Transition.Builder |
setWaitDuration(Duration.Builder builderForValue)
public ShipmentRoute.Transition.Builder setWaitDuration(Duration.Builder builderForValue)
Time spent waiting during this transition. Wait duration corresponds to idle time and does not include break time. Also note that this wait time may be split into several non-contiguous intervals.
.google.protobuf.Duration wait_duration = 6;
Name | Description |
builderForValue | Builder |
Type | Description |
ShipmentRoute.Transition.Builder |