Class ShipmentRoute.Visit.Builder (1.4.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 1.76.0 (latest)
- 1.74.0
- 1.73.0
- 1.72.0
- 1.71.0
- 1.70.0
- 1.68.0
- 1.66.0
- 1.65.0
- 1.62.0
- 1.61.0
- 1.60.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 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
publicstaticfinalclass ShipmentRoute.Visit.BuilderextendsGeneratedMessageV3.Builder<ShipmentRoute.Visit.Builder>implementsShipmentRoute.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.VisitOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()Methods
addAllArrivalLoads(Iterable<? extends CapacityQuantity> values)
publicShipmentRoute.Visit.BuilderaddAllArrivalLoads(Iterable<?extendsCapacityQuantity>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];
addAllDemands(Iterable<? extends CapacityQuantity> values)
publicShipmentRoute.Visit.BuilderaddAllDemands(Iterable<?extendsCapacityQuantity>values)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
addArrivalLoads(CapacityQuantity value)
publicShipmentRoute.Visit.BuilderaddArrivalLoads(CapacityQuantityvalue) 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];
addArrivalLoads(CapacityQuantity.Builder builderForValue)
publicShipmentRoute.Visit.BuilderaddArrivalLoads(CapacityQuantity.BuilderbuilderForValue) 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];
addArrivalLoads(int index, CapacityQuantity value)
publicShipmentRoute.Visit.BuilderaddArrivalLoads(intindex,CapacityQuantityvalue) 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];
addArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
publicShipmentRoute.Visit.BuilderaddArrivalLoads(intindex,CapacityQuantity.BuilderbuilderForValue) 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];
addArrivalLoadsBuilder()
publicCapacityQuantity.BuilderaddArrivalLoadsBuilder() 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];
addArrivalLoadsBuilder(int index)
publicCapacityQuantity.BuilderaddArrivalLoadsBuilder(intindex) 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];
addDemands(CapacityQuantity value)
publicShipmentRoute.Visit.BuilderaddDemands(CapacityQuantityvalue)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
addDemands(CapacityQuantity.Builder builderForValue)
publicShipmentRoute.Visit.BuilderaddDemands(CapacityQuantity.BuilderbuilderForValue)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
addDemands(int index, CapacityQuantity value)
publicShipmentRoute.Visit.BuilderaddDemands(intindex,CapacityQuantityvalue)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
addDemands(int index, CapacityQuantity.Builder builderForValue)
publicShipmentRoute.Visit.BuilderaddDemands(intindex,CapacityQuantity.BuilderbuilderForValue)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
addDemandsBuilder()
publicCapacityQuantity.BuilderaddDemandsBuilder()Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
addDemandsBuilder(int index)
publicCapacityQuantity.BuilderaddDemandsBuilder(intindex)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicShipmentRoute.Visit.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)build()
publicShipmentRoute.Visitbuild()buildPartial()
publicShipmentRoute.VisitbuildPartial()clear()
publicShipmentRoute.Visit.Builderclear()clearArrivalLoads()
publicShipmentRoute.Visit.BuilderclearArrivalLoads() 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];
clearDelayBeforeStart()
publicShipmentRoute.Visit.BuilderclearDelayBeforeStart()Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
clearDemands()
publicShipmentRoute.Visit.BuilderclearDemands()Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
clearDetour()
publicShipmentRoute.Visit.BuilderclearDetour() 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;
clearField(Descriptors.FieldDescriptor field)
publicShipmentRoute.Visit.BuilderclearField(Descriptors.FieldDescriptorfield)clearIsPickup()
publicShipmentRoute.Visit.BuilderclearIsPickup() If true the visit corresponds to a pickup of a Shipment. Otherwise, it
corresponds to a delivery.
bool is_pickup = 2;
This builder for chaining.
clearLoadDemands()
publicShipmentRoute.Visit.BuilderclearLoadDemands()clearOneof(Descriptors.OneofDescriptor oneof)
publicShipmentRoute.Visit.BuilderclearOneof(Descriptors.OneofDescriptoroneof)clearShipmentIndex()
publicShipmentRoute.Visit.BuilderclearShipmentIndex() Index of the shipments field in the source ShipmentModel.
int32 shipment_index = 1;
This builder for chaining.
clearShipmentLabel()
publicShipmentRoute.Visit.BuilderclearShipmentLabel() Copy of the corresponding Shipment.label, if specified in the
Shipment.
string shipment_label = 7;
This builder for chaining.
clearStartTime()
publicShipmentRoute.Visit.BuilderclearStartTime() 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;
clearVisitLabel()
publicShipmentRoute.Visit.BuilderclearVisitLabel() Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest.
string visit_label = 8;
This builder for chaining.
clearVisitRequestIndex()
publicShipmentRoute.Visit.BuilderclearVisitRequestIndex() Index of VisitRequest in either the pickup or delivery field of the
Shipment (see is_pickup).
int32 visit_request_index = 3;
This builder for chaining.
clone()
publicShipmentRoute.Visit.Builderclone()containsLoadDemands(String key)
publicbooleancontainsLoadDemands(Stringkey) 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;
getArrivalLoads(int index)
publicCapacityQuantitygetArrivalLoads(intindex) 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];
getArrivalLoadsBuilder(int index)
publicCapacityQuantity.BuildergetArrivalLoadsBuilder(intindex) 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];
getArrivalLoadsBuilderList()
publicList<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];
getArrivalLoadsCount()
publicintgetArrivalLoadsCount() 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];
getArrivalLoadsList()
publicList<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];
getArrivalLoadsOrBuilder(int index)
publicCapacityQuantityOrBuildergetArrivalLoadsOrBuilder(intindex) 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];
getArrivalLoadsOrBuilderList()
publicList<?extendsCapacityQuantityOrBuilder>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];
getDefaultInstanceForType()
publicShipmentRoute.VisitgetDefaultInstanceForType()getDelayBeforeStart() (deprecated)
publicShipmentRoute.DelaygetDelayBeforeStart()Deprecated. google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1824
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
The delayBeforeStart.
getDelayBeforeStartBuilder()
publicShipmentRoute.Delay.BuildergetDelayBeforeStartBuilder()Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
getDelayBeforeStartOrBuilder()
publicShipmentRoute.DelayOrBuildergetDelayBeforeStartOrBuilder()Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
getDemands(int index)
publicCapacityQuantitygetDemands(intindex)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
getDemandsBuilder(int index)
publicCapacityQuantity.BuildergetDemandsBuilder(intindex)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
getDemandsBuilderList()
publicList<CapacityQuantity.Builder>getDemandsBuilderList()Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
getDemandsCount()
publicintgetDemandsCount()Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
getDemandsList()
publicList<CapacityQuantity>getDemandsList()Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
getDemandsOrBuilder(int index)
publicCapacityQuantityOrBuildergetDemandsOrBuilder(intindex)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
getDemandsOrBuilderList()
publicList<?extendsCapacityQuantityOrBuilder>getDemandsOrBuilderList()Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()getDetour()
publicDurationgetDetour() 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;
The detour.
getDetourBuilder()
publicDuration.BuildergetDetourBuilder() 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;
getDetourOrBuilder()
publicDurationOrBuildergetDetourOrBuilder() 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;
getIsPickup()
publicbooleangetIsPickup() If true the visit corresponds to a pickup of a Shipment. Otherwise, it
corresponds to a delivery.
bool is_pickup = 2;
The isPickup.
getLoadDemands()
publicMap<String,Shipment.Load>getLoadDemands()Use #getLoadDemandsMap() instead.
getLoadDemandsCount()
publicintgetLoadDemandsCount() 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;
getLoadDemandsMap()
publicMap<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;
getLoadDemandsOrDefault(String key, Shipment.Load defaultValue)
publicShipment.LoadgetLoadDemandsOrDefault(Stringkey,Shipment.LoaddefaultValue) 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;
getLoadDemandsOrThrow(String key)
publicShipment.LoadgetLoadDemandsOrThrow(Stringkey) 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;
getMutableLoadDemands()
publicMap<String,Shipment.Load>getMutableLoadDemands()Use alternate mutation accessors instead.
getShipmentIndex()
publicintgetShipmentIndex() Index of the shipments field in the source ShipmentModel.
int32 shipment_index = 1;
The shipmentIndex.
getShipmentLabel()
publicStringgetShipmentLabel() Copy of the corresponding Shipment.label, if specified in the
Shipment.
string shipment_label = 7;
The shipmentLabel.
getShipmentLabelBytes()
publicByteStringgetShipmentLabelBytes() Copy of the corresponding Shipment.label, if specified in the
Shipment.
string shipment_label = 7;
The bytes for shipmentLabel.
getStartTime()
publicTimestampgetStartTime() 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;
The startTime.
getStartTimeBuilder()
publicTimestamp.BuildergetStartTimeBuilder() 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;
getStartTimeOrBuilder()
publicTimestampOrBuildergetStartTimeOrBuilder() 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;
getVisitLabel()
publicStringgetVisitLabel() Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest.
string visit_label = 8;
The visitLabel.
getVisitLabelBytes()
publicByteStringgetVisitLabelBytes() Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest.
string visit_label = 8;
The bytes for visitLabel.
getVisitRequestIndex()
publicintgetVisitRequestIndex() Index of VisitRequest in either the pickup or delivery field of the
Shipment (see is_pickup).
int32 visit_request_index = 3;
The visitRequestIndex.
hasDelayBeforeStart() (deprecated)
publicbooleanhasDelayBeforeStart()Deprecated. google.cloud.optimization.v1.ShipmentRoute.Visit.delay_before_start is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=1824
Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
Whether the delayBeforeStart field is set.
hasDetour()
publicbooleanhasDetour() 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;
Whether the detour field is set.
hasStartTime()
publicbooleanhasStartTime() 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;
Whether the startTime field is set.
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()internalGetMapField(int number)
protectedMapFieldinternalGetMapField(intnumber)internalGetMutableMapField(int number)
protectedMapFieldinternalGetMutableMapField(intnumber)isInitialized()
publicfinalbooleanisInitialized()mergeDelayBeforeStart(ShipmentRoute.Delay value)
publicShipmentRoute.Visit.BuildermergeDelayBeforeStart(ShipmentRoute.Delayvalue)Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
mergeDetour(Duration value)
publicShipmentRoute.Visit.BuildermergeDetour(Durationvalue) 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;
mergeFrom(ShipmentRoute.Visit other)
publicShipmentRoute.Visit.BuildermergeFrom(ShipmentRoute.Visitother)mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicShipmentRoute.Visit.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)mergeFrom(Message other)
publicShipmentRoute.Visit.BuildermergeFrom(Messageother)mergeStartTime(Timestamp value)
publicShipmentRoute.Visit.BuildermergeStartTime(Timestampvalue) 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;
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalShipmentRoute.Visit.BuildermergeUnknownFields(UnknownFieldSetunknownFields)putAllLoadDemands(Map<String,Shipment.Load> values)
publicShipmentRoute.Visit.BuilderputAllLoadDemands(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;
putLoadDemands(String key, Shipment.Load value)
publicShipmentRoute.Visit.BuilderputLoadDemands(Stringkey,Shipment.Loadvalue) 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;
removeArrivalLoads(int index)
publicShipmentRoute.Visit.BuilderremoveArrivalLoads(intindex) 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];
removeDemands(int index)
publicShipmentRoute.Visit.BuilderremoveDemands(intindex)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
removeLoadDemands(String key)
publicShipmentRoute.Visit.BuilderremoveLoadDemands(Stringkey) 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;
setArrivalLoads(int index, CapacityQuantity value)
publicShipmentRoute.Visit.BuildersetArrivalLoads(intindex,CapacityQuantityvalue) 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];
setArrivalLoads(int index, CapacityQuantity.Builder builderForValue)
publicShipmentRoute.Visit.BuildersetArrivalLoads(intindex,CapacityQuantity.BuilderbuilderForValue) 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];
setDelayBeforeStart(ShipmentRoute.Delay value)
publicShipmentRoute.Visit.BuildersetDelayBeforeStart(ShipmentRoute.Delayvalue)Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
setDelayBeforeStart(ShipmentRoute.Delay.Builder builderForValue)
publicShipmentRoute.Visit.BuildersetDelayBeforeStart(ShipmentRoute.Delay.BuilderbuilderForValue)Deprecated: Use [ShipmentRoute.Transition.delay_duration][] instead.
.google.cloud.optimization.v1.ShipmentRoute.Delay delay_before_start = 10 [deprecated = true];
setDemands(int index, CapacityQuantity value)
publicShipmentRoute.Visit.BuildersetDemands(intindex,CapacityQuantityvalue)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
setDemands(int index, CapacityQuantity.Builder builderForValue)
publicShipmentRoute.Visit.BuildersetDemands(intindex,CapacityQuantity.BuilderbuilderForValue)Deprecated: Use [Visit.load_demands][] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 5 [deprecated = true];
setDetour(Duration value)
publicShipmentRoute.Visit.BuildersetDetour(Durationvalue) 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;
setDetour(Duration.Builder builderForValue)
publicShipmentRoute.Visit.BuildersetDetour(Duration.BuilderbuilderForValue) 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;
setField(Descriptors.FieldDescriptor field, Object value)
publicShipmentRoute.Visit.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)setIsPickup(boolean value)
publicShipmentRoute.Visit.BuildersetIsPickup(booleanvalue) If true the visit corresponds to a pickup of a Shipment. Otherwise, it
corresponds to a delivery.
bool is_pickup = 2;
This builder for chaining.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicShipmentRoute.Visit.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)setShipmentIndex(int value)
publicShipmentRoute.Visit.BuildersetShipmentIndex(intvalue) Index of the shipments field in the source ShipmentModel.
int32 shipment_index = 1;
This builder for chaining.
setShipmentLabel(String value)
publicShipmentRoute.Visit.BuildersetShipmentLabel(Stringvalue) Copy of the corresponding Shipment.label, if specified in the
Shipment.
string shipment_label = 7;
This builder for chaining.
setShipmentLabelBytes(ByteString value)
publicShipmentRoute.Visit.BuildersetShipmentLabelBytes(ByteStringvalue) Copy of the corresponding Shipment.label, if specified in the
Shipment.
string shipment_label = 7;
This builder for chaining.
setStartTime(Timestamp value)
publicShipmentRoute.Visit.BuildersetStartTime(Timestampvalue) 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;
setStartTime(Timestamp.Builder builderForValue)
publicShipmentRoute.Visit.BuildersetStartTime(Timestamp.BuilderbuilderForValue) 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;
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalShipmentRoute.Visit.BuildersetUnknownFields(UnknownFieldSetunknownFields)setVisitLabel(String value)
publicShipmentRoute.Visit.BuildersetVisitLabel(Stringvalue) Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest.
string visit_label = 8;
This builder for chaining.
setVisitLabelBytes(ByteString value)
publicShipmentRoute.Visit.BuildersetVisitLabelBytes(ByteStringvalue) Copy of the corresponding
VisitRequest.label,
if specified in the VisitRequest.
string visit_label = 8;
This builder for chaining.
setVisitRequestIndex(int value)
publicShipmentRoute.Visit.BuildersetVisitRequestIndex(intvalue) Index of VisitRequest in either the pickup or delivery field of the
Shipment (see is_pickup).
int32 visit_request_index = 3;
This builder for chaining.