- 1.51.0 (latest)
- 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.Visit.Builder extends GeneratedMessageV3.Builder<ShipmentRoute.Visit.Builder> implements ShipmentRoute.VisitOrBuilder
A visit performed during a route. This visit corresponds to a pickup or a
delivery of a Shipment
.
Protobuf type google.cloud.optimization.v1.ShipmentRoute.Visit
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ShipmentRoute.Visit.BuilderImplements
ShipmentRoute.VisitOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllArrivalLoads(Iterable<? extends CapacityQuantity> values)
public ShipmentRoute.Visit.Builder addAllArrivalLoads(Iterable<? extends CapacityQuantity> values)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
values | Iterable<? extends com.google.cloud.optimization.v1.CapacityQuantity> |
Type | Description |
ShipmentRoute.Visit.Builder |
addAllDemands(Iterable<? extends CapacityQuantity> values)
public ShipmentRoute.Visit.Builder addAllDemands(Iterable<? extends CapacityQuantity> values)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
values | Iterable<? extends com.google.cloud.optimization.v1.CapacityQuantity> |
Type | Description |
ShipmentRoute.Visit.Builder |
addArrivalLoads(CapacityQuantity value)
public ShipmentRoute.Visit.Builder addArrivalLoads(CapacityQuantity value)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Visit.Builder |
addArrivalLoads(CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Visit.Builder addArrivalLoads(CapacityQuantity.Builder builderForValue)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
addArrivalLoads(int index, CapacityQuantity value)
public ShipmentRoute.Visit.Builder addArrivalLoads(int index, CapacityQuantity value)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Visit.Builder |
addArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Visit.Builder addArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
addArrivalLoadsBuilder()
public CapacityQuantity.Builder addArrivalLoadsBuilder()
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Type | Description |
CapacityQuantity.Builder |
addArrivalLoadsBuilder(int index)
public CapacityQuantity.Builder addArrivalLoadsBuilder(int index)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity.Builder |
addDemands(CapacityQuantity value)
public ShipmentRoute.Visit.Builder addDemands(CapacityQuantity value)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Visit.Builder |
addDemands(CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Visit.Builder addDemands(CapacityQuantity.Builder builderForValue)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
addDemands(int index, CapacityQuantity value)
public ShipmentRoute.Visit.Builder addDemands(int index, CapacityQuantity value)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Visit.Builder |
addDemands(int index, CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Visit.Builder addDemands(int index, CapacityQuantity.Builder builderForValue)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
addDemandsBuilder()
public CapacityQuantity.Builder addDemandsBuilder()
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Type | Description |
CapacityQuantity.Builder |
addDemandsBuilder(int index)
public CapacityQuantity.Builder addDemandsBuilder(int index)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ShipmentRoute.Visit.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ShipmentRoute.Visit.Builder |
build()
public ShipmentRoute.Visit build()
Type | Description |
ShipmentRoute.Visit |
buildPartial()
public ShipmentRoute.Visit buildPartial()
Type | Description |
ShipmentRoute.Visit |
clear()
public ShipmentRoute.Visit.Builder clear()
Type | Description |
ShipmentRoute.Visit.Builder |
clearArrivalLoads()
public ShipmentRoute.Visit.Builder clearArrivalLoads()
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Type | Description |
ShipmentRoute.Visit.Builder |
clearDelayBeforeStart()
public ShipmentRoute.Visit.Builder clearDelayBeforeStart()
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Type | Description |
ShipmentRoute.Visit.Builder |
clearDemands()
public ShipmentRoute.Visit.Builder clearDemands()
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Type | Description |
ShipmentRoute.Visit.Builder |
clearDetour()
public ShipmentRoute.Visit.Builder clearDetour()
Extra detour time due to the shipments visited on the route before the
visit and to the potential waiting time induced by time windows.
If the visit is a delivery, the detour is computed from the corresponding
pickup visit and is equal to:
`
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location to the delivery location).
Otherwise, it is computed from the vehicle
start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's
start_location to the visit.
`
.google.protobuf.Duration detour = 6;
Type | Description |
ShipmentRoute.Visit.Builder |
clearField(Descriptors.FieldDescriptor field)
public ShipmentRoute.Visit.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ShipmentRoute.Visit.Builder |
clearIsPickup()
public ShipmentRoute.Visit.Builder clearIsPickup()
If true the visit corresponds to a pickup of a Shipment
. Otherwise, it
corresponds to a delivery.
bool is_pickup = 2;
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
clearLoadDemands()
public ShipmentRoute.Visit.Builder clearLoadDemands()
Type | Description |
ShipmentRoute.Visit.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ShipmentRoute.Visit.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ShipmentRoute.Visit.Builder |
clearShipmentIndex()
public ShipmentRoute.Visit.Builder clearShipmentIndex()
Index of the shipments
field in the source ShipmentModel.
int32 shipment_index = 1;
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
clearShipmentLabel()
public ShipmentRoute.Visit.Builder clearShipmentLabel()
Copy of the corresponding Shipment.label
, if specified in the
Shipment
.
string shipment_label = 7;
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
clearStartTime()
public ShipmentRoute.Visit.Builder clearStartTime()
Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
.google.protobuf.Timestamp start_time = 4;
Type | Description |
ShipmentRoute.Visit.Builder |
clearVisitLabel()
public ShipmentRoute.Visit.Builder clearVisitLabel()
Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest
.
string visit_label = 8;
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
clearVisitRequestIndex()
public ShipmentRoute.Visit.Builder clearVisitRequestIndex()
Index of VisitRequest
in either the pickup or delivery field of the
Shipment
(see is_pickup
).
int32 visit_request_index = 3;
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
clone()
public ShipmentRoute.Visit.Builder clone()
Type | Description |
ShipmentRoute.Visit.Builder |
containsLoadDemands(String key)
public boolean containsLoadDemands(String key)
Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
Name | Description |
key | String |
Type | Description |
boolean |
getArrivalLoads(int index)
public CapacityQuantity getArrivalLoads(int index)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity |
getArrivalLoadsBuilder(int index)
public CapacityQuantity.Builder getArrivalLoadsBuilder(int index)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity.Builder |
getArrivalLoadsBuilderList()
public List<CapacityQuantity.Builder> getArrivalLoadsBuilderList()
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Type | Description |
List<Builder> |
getArrivalLoadsCount()
public int getArrivalLoadsCount()
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Type | Description |
int |
getArrivalLoadsList()
public List<CapacityQuantity> getArrivalLoadsList()
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Type | Description |
List<CapacityQuantity> |
getArrivalLoadsOrBuilder(int index)
public CapacityQuantityOrBuilder getArrivalLoadsOrBuilder(int index)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantityOrBuilder |
getArrivalLoadsOrBuilderList()
public List<? extends CapacityQuantityOrBuilder> getArrivalLoadsOrBuilderList()
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Type | Description |
List<? extends com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> |
getDefaultInstanceForType()
public ShipmentRoute.Visit getDefaultInstanceForType()
Type | Description |
ShipmentRoute.Visit |
getDelayBeforeStart()
public ShipmentRoute.Delay getDelayBeforeStart()
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Type | Description |
ShipmentRoute.Delay | The delayBeforeStart. |
getDelayBeforeStartBuilder()
public ShipmentRoute.Delay.Builder getDelayBeforeStartBuilder()
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Type | Description |
ShipmentRoute.Delay.Builder |
getDelayBeforeStartOrBuilder()
public ShipmentRoute.DelayOrBuilder getDelayBeforeStartOrBuilder()
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Type | Description |
ShipmentRoute.DelayOrBuilder |
getDemands(int index)
public CapacityQuantity getDemands(int index)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity |
getDemandsBuilder(int index)
public CapacityQuantity.Builder getDemandsBuilder(int index)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantity.Builder |
getDemandsBuilderList()
public List<CapacityQuantity.Builder> getDemandsBuilderList()
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Type | Description |
List<Builder> |
getDemandsCount()
public int getDemandsCount()
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Type | Description |
int |
getDemandsList()
public List<CapacityQuantity> getDemandsList()
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Type | Description |
List<CapacityQuantity> |
getDemandsOrBuilder(int index)
public CapacityQuantityOrBuilder getDemandsOrBuilder(int index)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
Type | Description |
CapacityQuantityOrBuilder |
getDemandsOrBuilderList()
public List<? extends CapacityQuantityOrBuilder> getDemandsOrBuilderList()
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Type | Description |
List<? extends com.google.cloud.optimization.v1.CapacityQuantityOrBuilder> |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDetour()
public Duration getDetour()
Extra detour time due to the shipments visited on the route before the
visit and to the potential waiting time induced by time windows.
If the visit is a delivery, the detour is computed from the corresponding
pickup visit and is equal to:
`
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location to the delivery location).
Otherwise, it is computed from the vehicle
start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's
start_location to the visit.
`
.google.protobuf.Duration detour = 6;
Type | Description |
Duration | The detour. |
getDetourBuilder()
public Duration.Builder getDetourBuilder()
Extra detour time due to the shipments visited on the route before the
visit and to the potential waiting time induced by time windows.
If the visit is a delivery, the detour is computed from the corresponding
pickup visit and is equal to:
`
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location to the delivery location).
Otherwise, it is computed from the vehicle
start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's
start_location to the visit.
`
.google.protobuf.Duration detour = 6;
Type | Description |
Builder |
getDetourOrBuilder()
public DurationOrBuilder getDetourOrBuilder()
Extra detour time due to the shipments visited on the route before the
visit and to the potential waiting time induced by time windows.
If the visit is a delivery, the detour is computed from the corresponding
pickup visit and is equal to:
`
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location to the delivery location).
Otherwise, it is computed from the vehicle
start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's
start_location to the visit.
`
.google.protobuf.Duration detour = 6;
Type | Description |
DurationOrBuilder |
getIsPickup()
public boolean getIsPickup()
If true the visit corresponds to a pickup of a Shipment
. Otherwise, it
corresponds to a delivery.
bool is_pickup = 2;
Type | Description |
boolean | The isPickup. |
getLoadDemands()
public Map<String,Shipment.Load> getLoadDemands()
Use #getLoadDemandsMap() instead.
Type | Description |
Map<String,Load> |
getLoadDemandsCount()
public int getLoadDemandsCount()
Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
Type | Description |
int |
getLoadDemandsMap()
public Map<String,Shipment.Load> getLoadDemandsMap()
Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
Type | Description |
Map<String,Load> |
getLoadDemandsOrDefault(String key, Shipment.Load defaultValue)
public Shipment.Load getLoadDemandsOrDefault(String key, Shipment.Load defaultValue)
Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
Name | Description |
key | String |
defaultValue | Shipment.Load |
Type | Description |
Shipment.Load |
getLoadDemandsOrThrow(String key)
public Shipment.Load getLoadDemandsOrThrow(String key)
Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
Name | Description |
key | String |
Type | Description |
Shipment.Load |
getMutableLoadDemands()
public Map<String,Shipment.Load> getMutableLoadDemands()
Use alternate mutation accessors instead.
Type | Description |
Map<String,Load> |
getShipmentIndex()
public int getShipmentIndex()
Index of the shipments
field in the source ShipmentModel.
int32 shipment_index = 1;
Type | Description |
int | The shipmentIndex. |
getShipmentLabel()
public String getShipmentLabel()
Copy of the corresponding Shipment.label
, if specified in the
Shipment
.
string shipment_label = 7;
Type | Description |
String | The shipmentLabel. |
getShipmentLabelBytes()
public ByteString getShipmentLabelBytes()
Copy of the corresponding Shipment.label
, if specified in the
Shipment
.
string shipment_label = 7;
Type | Description |
ByteString | The bytes for shipmentLabel. |
getStartTime()
public Timestamp getStartTime()
Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
.google.protobuf.Timestamp start_time = 4;
Type | Description |
Timestamp | The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
.google.protobuf.Timestamp start_time = 4;
Type | Description |
Builder |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
.google.protobuf.Timestamp start_time = 4;
Type | Description |
TimestampOrBuilder |
getVisitLabel()
public String getVisitLabel()
Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest
.
string visit_label = 8;
Type | Description |
String | The visitLabel. |
getVisitLabelBytes()
public ByteString getVisitLabelBytes()
Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest
.
string visit_label = 8;
Type | Description |
ByteString | The bytes for visitLabel. |
getVisitRequestIndex()
public int getVisitRequestIndex()
Index of VisitRequest
in either the pickup or delivery field of the
Shipment
(see is_pickup
).
int32 visit_request_index = 3;
Type | Description |
int | The visitRequestIndex. |
hasDelayBeforeStart()
public boolean hasDelayBeforeStart()
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Type | Description |
boolean | Whether the delayBeforeStart field is set. |
hasDetour()
public boolean hasDetour()
Extra detour time due to the shipments visited on the route before the
visit and to the potential waiting time induced by time windows.
If the visit is a delivery, the detour is computed from the corresponding
pickup visit and is equal to:
`
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location to the delivery location).
Otherwise, it is computed from the vehicle
start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's
start_location to the visit.
`
.google.protobuf.Duration detour = 6;
Type | Description |
boolean | Whether the detour field is set. |
hasStartTime()
public boolean hasStartTime()
Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
.google.protobuf.Timestamp start_time = 4;
Type | Description |
boolean | Whether the startTime 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 |
mergeDelayBeforeStart(ShipmentRoute.Delay value)
public ShipmentRoute.Visit.Builder mergeDelayBeforeStart(ShipmentRoute.Delay value)
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Name | Description |
value | ShipmentRoute.Delay |
Type | Description |
ShipmentRoute.Visit.Builder |
mergeDetour(Duration value)
public ShipmentRoute.Visit.Builder mergeDetour(Duration value)
Extra detour time due to the shipments visited on the route before the
visit and to the potential waiting time induced by time windows.
If the visit is a delivery, the detour is computed from the corresponding
pickup visit and is equal to:
`
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location to the delivery location).
Otherwise, it is computed from the vehicle
start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's
start_location to the visit.
`
.google.protobuf.Duration detour = 6;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Visit.Builder |
mergeFrom(ShipmentRoute.Visit other)
public ShipmentRoute.Visit.Builder mergeFrom(ShipmentRoute.Visit other)
Name | Description |
other | ShipmentRoute.Visit |
Type | Description |
ShipmentRoute.Visit.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ShipmentRoute.Visit.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ShipmentRoute.Visit.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ShipmentRoute.Visit.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ShipmentRoute.Visit.Builder |
mergeStartTime(Timestamp value)
public ShipmentRoute.Visit.Builder mergeStartTime(Timestamp value)
Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
.google.protobuf.Timestamp start_time = 4;
Name | Description |
value | Timestamp |
Type | Description |
ShipmentRoute.Visit.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentRoute.Visit.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ShipmentRoute.Visit.Builder |
putAllLoadDemands(Map<String,Shipment.Load> values)
public ShipmentRoute.Visit.Builder putAllLoadDemands(Map<String,Shipment.Load> values)
Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
Name | Description |
values | Map<String,Load> |
Type | Description |
ShipmentRoute.Visit.Builder |
putLoadDemands(String key, Shipment.Load value)
public ShipmentRoute.Visit.Builder putLoadDemands(String key, Shipment.Load value)
Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
Name | Description |
key | String |
value | Shipment.Load |
Type | Description |
ShipmentRoute.Visit.Builder |
removeArrivalLoads(int index)
public ShipmentRoute.Visit.Builder removeArrivalLoads(int index)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
Type | Description |
ShipmentRoute.Visit.Builder |
removeDemands(int index)
public ShipmentRoute.Visit.Builder removeDemands(int index)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
Type | Description |
ShipmentRoute.Visit.Builder |
removeLoadDemands(String key)
public ShipmentRoute.Visit.Builder removeLoadDemands(String key)
Total visit load demand as the sum of the shipment and the visit request
load_demands
. The values are negative if the visit is a delivery.
Demands are reported for the same types as the
Transition.loads
(see this field).
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 11;
Name | Description |
key | String |
Type | Description |
ShipmentRoute.Visit.Builder |
setArrivalLoads(int index, CapacityQuantity value)
public ShipmentRoute.Visit.Builder setArrivalLoads(int index, CapacityQuantity value)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Visit.Builder |
setArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Visit.Builder setArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
Deprecated: Use [ShipmentRoute.Transition.loads][] instead.
Vehicle loads upon arrival at the visit location, for each
type specified in Vehicle.capacities, start_load_intervals
,
end_load_intervals
or demands
.
Exception: we omit loads for quantity types unconstrained by intervals
and that don't have any non-zero demand on the route.
repeated .google.cloud.optimization.v1.CapacityQuantity arrival_loads = 9 [deprecated = true];
Name | Description |
index | int |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
setDelayBeforeStart(ShipmentRoute.Delay value)
public ShipmentRoute.Visit.Builder setDelayBeforeStart(ShipmentRoute.Delay value)
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Name | Description |
value | ShipmentRoute.Delay |
Type | Description |
ShipmentRoute.Visit.Builder |
setDelayBeforeStart(ShipmentRoute.Delay.Builder builderForValue)
public ShipmentRoute.Visit.Builder setDelayBeforeStart(ShipmentRoute.Delay.Builder builderForValue)
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Name | Description |
builderForValue | ShipmentRoute.Delay.Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
setDemands(int index, CapacityQuantity value)
public ShipmentRoute.Visit.Builder setDemands(int index, CapacityQuantity value)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
value | CapacityQuantity |
Type | Description |
ShipmentRoute.Visit.Builder |
setDemands(int index, CapacityQuantity.Builder builderForValue)
public ShipmentRoute.Visit.Builder setDemands(int index, CapacityQuantity.Builder builderForValue)
Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
Name | Description |
index | int |
builderForValue | CapacityQuantity.Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
setDetour(Duration value)
public ShipmentRoute.Visit.Builder setDetour(Duration value)
Extra detour time due to the shipments visited on the route before the
visit and to the potential waiting time induced by time windows.
If the visit is a delivery, the detour is computed from the corresponding
pickup visit and is equal to:
`
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location to the delivery location).
Otherwise, it is computed from the vehicle
start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's
start_location to the visit.
`
.google.protobuf.Duration detour = 6;
Name | Description |
value | Duration |
Type | Description |
ShipmentRoute.Visit.Builder |
setDetour(Duration.Builder builderForValue)
public ShipmentRoute.Visit.Builder setDetour(Duration.Builder builderForValue)
Extra detour time due to the shipments visited on the route before the
visit and to the potential waiting time induced by time windows.
If the visit is a delivery, the detour is computed from the corresponding
pickup visit and is equal to:
`
start_time(delivery) - start_time(pickup)
- (duration(pickup) + travel duration from the pickup location to the delivery location).
Otherwise, it is computed from the vehicle
start_location and is equal
to:
start_time - vehicle_start_time - travel duration from
the vehicle's
start_location to the visit.
`
.google.protobuf.Duration detour = 6;
Name | Description |
builderForValue | Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ShipmentRoute.Visit.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ShipmentRoute.Visit.Builder |
setIsPickup(boolean value)
public ShipmentRoute.Visit.Builder setIsPickup(boolean value)
If true the visit corresponds to a pickup of a Shipment
. Otherwise, it
corresponds to a delivery.
bool is_pickup = 2;
Name | Description |
value | boolean The isPickup to set. |
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ShipmentRoute.Visit.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ShipmentRoute.Visit.Builder |
setShipmentIndex(int value)
public ShipmentRoute.Visit.Builder setShipmentIndex(int value)
Index of the shipments
field in the source ShipmentModel.
int32 shipment_index = 1;
Name | Description |
value | int The shipmentIndex to set. |
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
setShipmentLabel(String value)
public ShipmentRoute.Visit.Builder setShipmentLabel(String value)
Copy of the corresponding Shipment.label
, if specified in the
Shipment
.
string shipment_label = 7;
Name | Description |
value | String The shipmentLabel to set. |
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
setShipmentLabelBytes(ByteString value)
public ShipmentRoute.Visit.Builder setShipmentLabelBytes(ByteString value)
Copy of the corresponding Shipment.label
, if specified in the
Shipment
.
string shipment_label = 7;
Name | Description |
value | ByteString The bytes for shipmentLabel to set. |
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
setStartTime(Timestamp value)
public ShipmentRoute.Visit.Builder setStartTime(Timestamp value)
Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
.google.protobuf.Timestamp start_time = 4;
Name | Description |
value | Timestamp |
Type | Description |
ShipmentRoute.Visit.Builder |
setStartTime(Timestamp.Builder builderForValue)
public ShipmentRoute.Visit.Builder setStartTime(Timestamp.Builder builderForValue)
Time at which the visit starts. Note that the vehicle may arrive earlier
than this at the visit location. Times are consistent with the
ShipmentModel
.
.google.protobuf.Timestamp start_time = 4;
Name | Description |
builderForValue | Builder |
Type | Description |
ShipmentRoute.Visit.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ShipmentRoute.Visit.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ShipmentRoute.Visit.Builder |
setVisitLabel(String value)
public ShipmentRoute.Visit.Builder setVisitLabel(String value)
Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest
.
string visit_label = 8;
Name | Description |
value | String The visitLabel to set. |
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
setVisitLabelBytes(ByteString value)
public ShipmentRoute.Visit.Builder setVisitLabelBytes(ByteString value)
Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest
.
string visit_label = 8;
Name | Description |
value | ByteString The bytes for visitLabel to set. |
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |
setVisitRequestIndex(int value)
public ShipmentRoute.Visit.Builder setVisitRequestIndex(int value)
Index of VisitRequest
in either the pickup or delivery field of the
Shipment
(see is_pickup
).
int32 visit_request_index = 3;
Name | Description |
value | int The visitRequestIndex to set. |
Type | Description |
ShipmentRoute.Visit.Builder | This builder for chaining. |