Package com.google.cloud.optimization.v1
Class Shipment.VisitRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
- com.google.cloud.optimization.v1.Shipment.VisitRequest.Builder
-
- All Implemented Interfaces:
Shipment.VisitRequestOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Shipment.VisitRequest
public static final class Shipment.VisitRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder> implements Shipment.VisitRequestOrBuilder
Request for a visit which can be done by a vehicle: it has a geo-location (or two, see below), opening and closing times represented by time windows, and a service duration time (time spent by the vehicle once it has arrived to pickup or drop off goods).
Protobuf typegoogle.cloud.optimization.v1.Shipment.VisitRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Shipment.VisitRequest.BuilderaddAllDemands(Iterable<? extends CapacityQuantity> values)Deprecated.Shipment.VisitRequest.BuilderaddAllTags(Iterable<String> values)Specifies tags attached to the visit request.Shipment.VisitRequest.BuilderaddAllTimeWindows(Iterable<? extends TimeWindow> values)Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuilderaddAllVisitTypes(Iterable<String> values)Specifies the types of the visit.Shipment.VisitRequest.BuilderaddDemands(int index, CapacityQuantity value)Deprecated.Shipment.VisitRequest.BuilderaddDemands(int index, CapacityQuantity.Builder builderForValue)Deprecated.Shipment.VisitRequest.BuilderaddDemands(CapacityQuantity value)Deprecated.Shipment.VisitRequest.BuilderaddDemands(CapacityQuantity.Builder builderForValue)Deprecated.CapacityQuantity.BuilderaddDemandsBuilder()Deprecated.CapacityQuantity.BuilderaddDemandsBuilder(int index)Deprecated.Shipment.VisitRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Shipment.VisitRequest.BuilderaddTags(String value)Specifies tags attached to the visit request.Shipment.VisitRequest.BuilderaddTagsBytes(com.google.protobuf.ByteString value)Specifies tags attached to the visit request.Shipment.VisitRequest.BuilderaddTimeWindows(int index, TimeWindow value)Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuilderaddTimeWindows(int index, TimeWindow.Builder builderForValue)Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuilderaddTimeWindows(TimeWindow value)Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuilderaddTimeWindows(TimeWindow.Builder builderForValue)Time windows which constrain the arrival time at a visit.TimeWindow.BuilderaddTimeWindowsBuilder()Time windows which constrain the arrival time at a visit.TimeWindow.BuilderaddTimeWindowsBuilder(int index)Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuilderaddVisitTypes(String value)Specifies the types of the visit.Shipment.VisitRequest.BuilderaddVisitTypesBytes(com.google.protobuf.ByteString value)Specifies the types of the visit.Shipment.VisitRequestbuild()Shipment.VisitRequestbuildPartial()Shipment.VisitRequest.Builderclear()Shipment.VisitRequest.BuilderclearArrivalLocation()The geo-location where the vehicle arrives when performing this `VisitRequest`.Shipment.VisitRequest.BuilderclearArrivalWaypoint()The waypoint where the vehicle arrives when performing this `VisitRequest`.Shipment.VisitRequest.BuilderclearCost()Cost to service this visit request on a vehicle route.Shipment.VisitRequest.BuilderclearDemands()Deprecated.Shipment.VisitRequest.BuilderclearDepartureLocation()The geo-location where the vehicle departs after completing this `VisitRequest`.Shipment.VisitRequest.BuilderclearDepartureWaypoint()The waypoint where the vehicle departs after completing this `VisitRequest`.Shipment.VisitRequest.BuilderclearDuration()Duration of the visit, i.e.Shipment.VisitRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Shipment.VisitRequest.BuilderclearLabel()Specifies a label for this `VisitRequest`.Shipment.VisitRequest.BuilderclearLoadDemands()Shipment.VisitRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Shipment.VisitRequest.BuilderclearTags()Specifies tags attached to the visit request.Shipment.VisitRequest.BuilderclearTimeWindows()Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuilderclearVisitTypes()Specifies the types of the visit.Shipment.VisitRequest.Builderclone()booleancontainsLoadDemands(String key)Load demands of this visit request.com.google.type.LatLnggetArrivalLocation()The geo-location where the vehicle arrives when performing this `VisitRequest`.com.google.type.LatLng.BuildergetArrivalLocationBuilder()The geo-location where the vehicle arrives when performing this `VisitRequest`.com.google.type.LatLngOrBuildergetArrivalLocationOrBuilder()The geo-location where the vehicle arrives when performing this `VisitRequest`.WaypointgetArrivalWaypoint()The waypoint where the vehicle arrives when performing this `VisitRequest`.Waypoint.BuildergetArrivalWaypointBuilder()The waypoint where the vehicle arrives when performing this `VisitRequest`.WaypointOrBuildergetArrivalWaypointOrBuilder()The waypoint where the vehicle arrives when performing this `VisitRequest`.doublegetCost()Cost to service this visit request on a vehicle route.Shipment.VisitRequestgetDefaultInstanceForType()CapacityQuantitygetDemands(int index)Deprecated.CapacityQuantity.BuildergetDemandsBuilder(int index)Deprecated.List<CapacityQuantity.Builder>getDemandsBuilderList()Deprecated.intgetDemandsCount()Deprecated.List<CapacityQuantity>getDemandsList()Deprecated.CapacityQuantityOrBuildergetDemandsOrBuilder(int index)Deprecated.List<? extends CapacityQuantityOrBuilder>getDemandsOrBuilderList()Deprecated.com.google.type.LatLnggetDepartureLocation()The geo-location where the vehicle departs after completing this `VisitRequest`.com.google.type.LatLng.BuildergetDepartureLocationBuilder()The geo-location where the vehicle departs after completing this `VisitRequest`.com.google.type.LatLngOrBuildergetDepartureLocationOrBuilder()The geo-location where the vehicle departs after completing this `VisitRequest`.WaypointgetDepartureWaypoint()The waypoint where the vehicle departs after completing this `VisitRequest`.Waypoint.BuildergetDepartureWaypointBuilder()The waypoint where the vehicle departs after completing this `VisitRequest`.WaypointOrBuildergetDepartureWaypointOrBuilder()The waypoint where the vehicle departs after completing this `VisitRequest`.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.DurationgetDuration()Duration of the visit, i.e.com.google.protobuf.Duration.BuildergetDurationBuilder()Duration of the visit, i.e.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()Duration of the visit, i.e.StringgetLabel()Specifies a label for this `VisitRequest`.com.google.protobuf.ByteStringgetLabelBytes()Specifies a label for this `VisitRequest`.Map<String,Shipment.Load>getLoadDemands()Deprecated.intgetLoadDemandsCount()Load demands of this visit request.Map<String,Shipment.Load>getLoadDemandsMap()Load demands of this visit request.Shipment.LoadgetLoadDemandsOrDefault(String key, Shipment.Load defaultValue)Load demands of this visit request.Shipment.LoadgetLoadDemandsOrThrow(String key)Load demands of this visit request.Map<String,Shipment.Load>getMutableLoadDemands()Deprecated.StringgetTags(int index)Specifies tags attached to the visit request.com.google.protobuf.ByteStringgetTagsBytes(int index)Specifies tags attached to the visit request.intgetTagsCount()Specifies tags attached to the visit request.com.google.protobuf.ProtocolStringListgetTagsList()Specifies tags attached to the visit request.TimeWindowgetTimeWindows(int index)Time windows which constrain the arrival time at a visit.TimeWindow.BuildergetTimeWindowsBuilder(int index)Time windows which constrain the arrival time at a visit.List<TimeWindow.Builder>getTimeWindowsBuilderList()Time windows which constrain the arrival time at a visit.intgetTimeWindowsCount()Time windows which constrain the arrival time at a visit.List<TimeWindow>getTimeWindowsList()Time windows which constrain the arrival time at a visit.TimeWindowOrBuildergetTimeWindowsOrBuilder(int index)Time windows which constrain the arrival time at a visit.List<? extends TimeWindowOrBuilder>getTimeWindowsOrBuilderList()Time windows which constrain the arrival time at a visit.StringgetVisitTypes(int index)Specifies the types of the visit.com.google.protobuf.ByteStringgetVisitTypesBytes(int index)Specifies the types of the visit.intgetVisitTypesCount()Specifies the types of the visit.com.google.protobuf.ProtocolStringListgetVisitTypesList()Specifies the types of the visit.booleanhasArrivalLocation()The geo-location where the vehicle arrives when performing this `VisitRequest`.booleanhasArrivalWaypoint()The waypoint where the vehicle arrives when performing this `VisitRequest`.booleanhasDepartureLocation()The geo-location where the vehicle departs after completing this `VisitRequest`.booleanhasDepartureWaypoint()The waypoint where the vehicle departs after completing this `VisitRequest`.booleanhasDuration()Duration of the visit, i.e.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Shipment.VisitRequest.BuildermergeArrivalLocation(com.google.type.LatLng value)The geo-location where the vehicle arrives when performing this `VisitRequest`.Shipment.VisitRequest.BuildermergeArrivalWaypoint(Waypoint value)The waypoint where the vehicle arrives when performing this `VisitRequest`.Shipment.VisitRequest.BuildermergeDepartureLocation(com.google.type.LatLng value)The geo-location where the vehicle departs after completing this `VisitRequest`.Shipment.VisitRequest.BuildermergeDepartureWaypoint(Waypoint value)The waypoint where the vehicle departs after completing this `VisitRequest`.Shipment.VisitRequest.BuildermergeDuration(com.google.protobuf.Duration value)Duration of the visit, i.e.Shipment.VisitRequest.BuildermergeFrom(Shipment.VisitRequest other)Shipment.VisitRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Shipment.VisitRequest.BuildermergeFrom(com.google.protobuf.Message other)Shipment.VisitRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Shipment.VisitRequest.BuilderputAllLoadDemands(Map<String,Shipment.Load> values)Load demands of this visit request.Shipment.VisitRequest.BuilderputLoadDemands(String key, Shipment.Load value)Load demands of this visit request.Shipment.VisitRequest.BuilderremoveDemands(int index)Deprecated.Shipment.VisitRequest.BuilderremoveLoadDemands(String key)Load demands of this visit request.Shipment.VisitRequest.BuilderremoveTimeWindows(int index)Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuildersetArrivalLocation(com.google.type.LatLng value)The geo-location where the vehicle arrives when performing this `VisitRequest`.Shipment.VisitRequest.BuildersetArrivalLocation(com.google.type.LatLng.Builder builderForValue)The geo-location where the vehicle arrives when performing this `VisitRequest`.Shipment.VisitRequest.BuildersetArrivalWaypoint(Waypoint value)The waypoint where the vehicle arrives when performing this `VisitRequest`.Shipment.VisitRequest.BuildersetArrivalWaypoint(Waypoint.Builder builderForValue)The waypoint where the vehicle arrives when performing this `VisitRequest`.Shipment.VisitRequest.BuildersetCost(double value)Cost to service this visit request on a vehicle route.Shipment.VisitRequest.BuildersetDemands(int index, CapacityQuantity value)Deprecated.Shipment.VisitRequest.BuildersetDemands(int index, CapacityQuantity.Builder builderForValue)Deprecated.Shipment.VisitRequest.BuildersetDepartureLocation(com.google.type.LatLng value)The geo-location where the vehicle departs after completing this `VisitRequest`.Shipment.VisitRequest.BuildersetDepartureLocation(com.google.type.LatLng.Builder builderForValue)The geo-location where the vehicle departs after completing this `VisitRequest`.Shipment.VisitRequest.BuildersetDepartureWaypoint(Waypoint value)The waypoint where the vehicle departs after completing this `VisitRequest`.Shipment.VisitRequest.BuildersetDepartureWaypoint(Waypoint.Builder builderForValue)The waypoint where the vehicle departs after completing this `VisitRequest`.Shipment.VisitRequest.BuildersetDuration(com.google.protobuf.Duration value)Duration of the visit, i.e.Shipment.VisitRequest.BuildersetDuration(com.google.protobuf.Duration.Builder builderForValue)Duration of the visit, i.e.Shipment.VisitRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Shipment.VisitRequest.BuildersetLabel(String value)Specifies a label for this `VisitRequest`.Shipment.VisitRequest.BuildersetLabelBytes(com.google.protobuf.ByteString value)Specifies a label for this `VisitRequest`.Shipment.VisitRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Shipment.VisitRequest.BuildersetTags(int index, String value)Specifies tags attached to the visit request.Shipment.VisitRequest.BuildersetTimeWindows(int index, TimeWindow value)Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuildersetTimeWindows(int index, TimeWindow.Builder builderForValue)Time windows which constrain the arrival time at a visit.Shipment.VisitRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Shipment.VisitRequest.BuildersetVisitTypes(int index, String value)Specifies the types of the visit.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
clear
public Shipment.VisitRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
getDefaultInstanceForType
public Shipment.VisitRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Shipment.VisitRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Shipment.VisitRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Shipment.VisitRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
setField
public Shipment.VisitRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
clearField
public Shipment.VisitRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
clearOneof
public Shipment.VisitRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
setRepeatedField
public Shipment.VisitRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
addRepeatedField
public Shipment.VisitRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
mergeFrom
public Shipment.VisitRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Shipment.VisitRequest.Builder>
-
mergeFrom
public Shipment.VisitRequest.Builder mergeFrom(Shipment.VisitRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
mergeFrom
public Shipment.VisitRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Shipment.VisitRequest.Builder>- Throws:
IOException
-
hasArrivalLocation
public boolean hasArrivalLocation()
The geo-location where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_location` must not be specified.
.google.type.LatLng arrival_location = 1;- Specified by:
hasArrivalLocationin interfaceShipment.VisitRequestOrBuilder- Returns:
- Whether the arrivalLocation field is set.
-
getArrivalLocation
public com.google.type.LatLng getArrivalLocation()
The geo-location where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_location` must not be specified.
.google.type.LatLng arrival_location = 1;- Specified by:
getArrivalLocationin interfaceShipment.VisitRequestOrBuilder- Returns:
- The arrivalLocation.
-
setArrivalLocation
public Shipment.VisitRequest.Builder setArrivalLocation(com.google.type.LatLng value)
The geo-location where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_location` must not be specified.
.google.type.LatLng arrival_location = 1;
-
setArrivalLocation
public Shipment.VisitRequest.Builder setArrivalLocation(com.google.type.LatLng.Builder builderForValue)
The geo-location where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_location` must not be specified.
.google.type.LatLng arrival_location = 1;
-
mergeArrivalLocation
public Shipment.VisitRequest.Builder mergeArrivalLocation(com.google.type.LatLng value)
The geo-location where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_location` must not be specified.
.google.type.LatLng arrival_location = 1;
-
clearArrivalLocation
public Shipment.VisitRequest.Builder clearArrivalLocation()
The geo-location where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_location` must not be specified.
.google.type.LatLng arrival_location = 1;
-
getArrivalLocationBuilder
public com.google.type.LatLng.Builder getArrivalLocationBuilder()
The geo-location where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_location` must not be specified.
.google.type.LatLng arrival_location = 1;
-
getArrivalLocationOrBuilder
public com.google.type.LatLngOrBuilder getArrivalLocationOrBuilder()
The geo-location where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_location` must not be specified.
.google.type.LatLng arrival_location = 1;- Specified by:
getArrivalLocationOrBuilderin interfaceShipment.VisitRequestOrBuilder
-
hasArrivalWaypoint
public boolean hasArrivalWaypoint()
The waypoint where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;- Specified by:
hasArrivalWaypointin interfaceShipment.VisitRequestOrBuilder- Returns:
- Whether the arrivalWaypoint field is set.
-
getArrivalWaypoint
public Waypoint getArrivalWaypoint()
The waypoint where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;- Specified by:
getArrivalWaypointin interfaceShipment.VisitRequestOrBuilder- Returns:
- The arrivalWaypoint.
-
setArrivalWaypoint
public Shipment.VisitRequest.Builder setArrivalWaypoint(Waypoint value)
The waypoint where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;
-
setArrivalWaypoint
public Shipment.VisitRequest.Builder setArrivalWaypoint(Waypoint.Builder builderForValue)
The waypoint where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;
-
mergeArrivalWaypoint
public Shipment.VisitRequest.Builder mergeArrivalWaypoint(Waypoint value)
The waypoint where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;
-
clearArrivalWaypoint
public Shipment.VisitRequest.Builder clearArrivalWaypoint()
The waypoint where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;
-
getArrivalWaypointBuilder
public Waypoint.Builder getArrivalWaypointBuilder()
The waypoint where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;
-
getArrivalWaypointOrBuilder
public WaypointOrBuilder getArrivalWaypointOrBuilder()
The waypoint where the vehicle arrives when performing this `VisitRequest`. If the shipment model has duration distance matrices, `arrival_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint arrival_waypoint = 2;- Specified by:
getArrivalWaypointOrBuilderin interfaceShipment.VisitRequestOrBuilder
-
hasDepartureLocation
public boolean hasDepartureLocation()
The geo-location where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_location`. If the shipment model has duration distance matrices, `departure_location` must not be specified.
.google.type.LatLng departure_location = 3;- Specified by:
hasDepartureLocationin interfaceShipment.VisitRequestOrBuilder- Returns:
- Whether the departureLocation field is set.
-
getDepartureLocation
public com.google.type.LatLng getDepartureLocation()
The geo-location where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_location`. If the shipment model has duration distance matrices, `departure_location` must not be specified.
.google.type.LatLng departure_location = 3;- Specified by:
getDepartureLocationin interfaceShipment.VisitRequestOrBuilder- Returns:
- The departureLocation.
-
setDepartureLocation
public Shipment.VisitRequest.Builder setDepartureLocation(com.google.type.LatLng value)
The geo-location where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_location`. If the shipment model has duration distance matrices, `departure_location` must not be specified.
.google.type.LatLng departure_location = 3;
-
setDepartureLocation
public Shipment.VisitRequest.Builder setDepartureLocation(com.google.type.LatLng.Builder builderForValue)
The geo-location where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_location`. If the shipment model has duration distance matrices, `departure_location` must not be specified.
.google.type.LatLng departure_location = 3;
-
mergeDepartureLocation
public Shipment.VisitRequest.Builder mergeDepartureLocation(com.google.type.LatLng value)
The geo-location where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_location`. If the shipment model has duration distance matrices, `departure_location` must not be specified.
.google.type.LatLng departure_location = 3;
-
clearDepartureLocation
public Shipment.VisitRequest.Builder clearDepartureLocation()
The geo-location where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_location`. If the shipment model has duration distance matrices, `departure_location` must not be specified.
.google.type.LatLng departure_location = 3;
-
getDepartureLocationBuilder
public com.google.type.LatLng.Builder getDepartureLocationBuilder()
The geo-location where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_location`. If the shipment model has duration distance matrices, `departure_location` must not be specified.
.google.type.LatLng departure_location = 3;
-
getDepartureLocationOrBuilder
public com.google.type.LatLngOrBuilder getDepartureLocationOrBuilder()
The geo-location where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_location`. If the shipment model has duration distance matrices, `departure_location` must not be specified.
.google.type.LatLng departure_location = 3;- Specified by:
getDepartureLocationOrBuilderin interfaceShipment.VisitRequestOrBuilder
-
hasDepartureWaypoint
public boolean hasDepartureWaypoint()
The waypoint where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`. If the shipment model has duration distance matrices, `departure_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint departure_waypoint = 4;- Specified by:
hasDepartureWaypointin interfaceShipment.VisitRequestOrBuilder- Returns:
- Whether the departureWaypoint field is set.
-
getDepartureWaypoint
public Waypoint getDepartureWaypoint()
The waypoint where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`. If the shipment model has duration distance matrices, `departure_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint departure_waypoint = 4;- Specified by:
getDepartureWaypointin interfaceShipment.VisitRequestOrBuilder- Returns:
- The departureWaypoint.
-
setDepartureWaypoint
public Shipment.VisitRequest.Builder setDepartureWaypoint(Waypoint value)
The waypoint where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`. If the shipment model has duration distance matrices, `departure_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint departure_waypoint = 4;
-
setDepartureWaypoint
public Shipment.VisitRequest.Builder setDepartureWaypoint(Waypoint.Builder builderForValue)
The waypoint where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`. If the shipment model has duration distance matrices, `departure_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint departure_waypoint = 4;
-
mergeDepartureWaypoint
public Shipment.VisitRequest.Builder mergeDepartureWaypoint(Waypoint value)
The waypoint where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`. If the shipment model has duration distance matrices, `departure_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint departure_waypoint = 4;
-
clearDepartureWaypoint
public Shipment.VisitRequest.Builder clearDepartureWaypoint()
The waypoint where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`. If the shipment model has duration distance matrices, `departure_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint departure_waypoint = 4;
-
getDepartureWaypointBuilder
public Waypoint.Builder getDepartureWaypointBuilder()
The waypoint where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`. If the shipment model has duration distance matrices, `departure_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint departure_waypoint = 4;
-
getDepartureWaypointOrBuilder
public WaypointOrBuilder getDepartureWaypointOrBuilder()
The waypoint where the vehicle departs after completing this `VisitRequest`. Can be omitted if it is the same as `arrival_waypoint`. If the shipment model has duration distance matrices, `departure_waypoint` must not be specified.
.google.cloud.optimization.v1.Waypoint departure_waypoint = 4;- Specified by:
getDepartureWaypointOrBuilderin interfaceShipment.VisitRequestOrBuilder
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Specified by:
getTagsListin interfaceShipment.VisitRequestOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Specified by:
getTagsCountin interfaceShipment.VisitRequestOrBuilder- Returns:
- The count of tags.
-
getTags
public String getTags(int index)
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Specified by:
getTagsin interfaceShipment.VisitRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index)
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Specified by:
getTagsBytesin interfaceShipment.VisitRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
setTags
public Shipment.VisitRequest.Builder setTags(int index, String value)
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Parameters:
index- The index to set the value at.value- The tags to set.- Returns:
- This builder for chaining.
-
addTags
public Shipment.VisitRequest.Builder addTags(String value)
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Parameters:
value- The tags to add.- Returns:
- This builder for chaining.
-
addAllTags
public Shipment.VisitRequest.Builder addAllTags(Iterable<String> values)
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Parameters:
values- The tags to add.- Returns:
- This builder for chaining.
-
clearTags
public Shipment.VisitRequest.Builder clearTags()
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Returns:
- This builder for chaining.
-
addTagsBytes
public Shipment.VisitRequest.Builder addTagsBytes(com.google.protobuf.ByteString value)
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Parameters:
value- The bytes of the tags to add.- Returns:
- This builder for chaining.
-
getTimeWindowsList
public List<TimeWindow> getTimeWindowsList()
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;- Specified by:
getTimeWindowsListin interfaceShipment.VisitRequestOrBuilder
-
getTimeWindowsCount
public int getTimeWindowsCount()
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;- Specified by:
getTimeWindowsCountin interfaceShipment.VisitRequestOrBuilder
-
getTimeWindows
public TimeWindow getTimeWindows(int index)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;- Specified by:
getTimeWindowsin interfaceShipment.VisitRequestOrBuilder
-
setTimeWindows
public Shipment.VisitRequest.Builder setTimeWindows(int index, TimeWindow value)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
setTimeWindows
public Shipment.VisitRequest.Builder setTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
addTimeWindows
public Shipment.VisitRequest.Builder addTimeWindows(TimeWindow value)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
addTimeWindows
public Shipment.VisitRequest.Builder addTimeWindows(int index, TimeWindow value)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
addTimeWindows
public Shipment.VisitRequest.Builder addTimeWindows(TimeWindow.Builder builderForValue)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
addTimeWindows
public Shipment.VisitRequest.Builder addTimeWindows(int index, TimeWindow.Builder builderForValue)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
addAllTimeWindows
public Shipment.VisitRequest.Builder addAllTimeWindows(Iterable<? extends TimeWindow> values)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
clearTimeWindows
public Shipment.VisitRequest.Builder clearTimeWindows()
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
removeTimeWindows
public Shipment.VisitRequest.Builder removeTimeWindows(int index)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
getTimeWindowsBuilder
public TimeWindow.Builder getTimeWindowsBuilder(int index)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
getTimeWindowsOrBuilder
public TimeWindowOrBuilder getTimeWindowsOrBuilder(int index)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;- Specified by:
getTimeWindowsOrBuilderin interfaceShipment.VisitRequestOrBuilder
-
getTimeWindowsOrBuilderList
public List<? extends TimeWindowOrBuilder> getTimeWindowsOrBuilderList()
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;- Specified by:
getTimeWindowsOrBuilderListin interfaceShipment.VisitRequestOrBuilder
-
addTimeWindowsBuilder
public TimeWindow.Builder addTimeWindowsBuilder()
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
addTimeWindowsBuilder
public TimeWindow.Builder addTimeWindowsBuilder(int index)
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
getTimeWindowsBuilderList
public List<TimeWindow.Builder> getTimeWindowsBuilderList()
Time windows which constrain the arrival time at a visit. Note that a vehicle may depart outside of the arrival time window, i.e. arrival time + duration do not need to be inside a time window. This can result in waiting time if the vehicle arrives before [TimeWindow.start_time][google.cloud.optimization.v1.TimeWindow.start_time]. The absence of `TimeWindow` means that the vehicle can perform this visit at any time. Time windows must be disjoint, i.e. no time window must overlap with or be adjacent to another, and they must be in increasing order. `cost_per_hour_after_soft_end_time` and `soft_end_time` can only be set if there is a single time window.
repeated .google.cloud.optimization.v1.TimeWindow time_windows = 6;
-
hasDuration
public boolean hasDuration()
Duration of the visit, i.e. time spent by the vehicle between arrival and departure (to be added to the possible waiting time; see `time_windows`).
.google.protobuf.Duration duration = 7;- Specified by:
hasDurationin interfaceShipment.VisitRequestOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()
Duration of the visit, i.e. time spent by the vehicle between arrival and departure (to be added to the possible waiting time; see `time_windows`).
.google.protobuf.Duration duration = 7;- Specified by:
getDurationin interfaceShipment.VisitRequestOrBuilder- Returns:
- The duration.
-
setDuration
public Shipment.VisitRequest.Builder setDuration(com.google.protobuf.Duration value)
Duration of the visit, i.e. time spent by the vehicle between arrival and departure (to be added to the possible waiting time; see `time_windows`).
.google.protobuf.Duration duration = 7;
-
setDuration
public Shipment.VisitRequest.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
Duration of the visit, i.e. time spent by the vehicle between arrival and departure (to be added to the possible waiting time; see `time_windows`).
.google.protobuf.Duration duration = 7;
-
mergeDuration
public Shipment.VisitRequest.Builder mergeDuration(com.google.protobuf.Duration value)
Duration of the visit, i.e. time spent by the vehicle between arrival and departure (to be added to the possible waiting time; see `time_windows`).
.google.protobuf.Duration duration = 7;
-
clearDuration
public Shipment.VisitRequest.Builder clearDuration()
Duration of the visit, i.e. time spent by the vehicle between arrival and departure (to be added to the possible waiting time; see `time_windows`).
.google.protobuf.Duration duration = 7;
-
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()
Duration of the visit, i.e. time spent by the vehicle between arrival and departure (to be added to the possible waiting time; see `time_windows`).
.google.protobuf.Duration duration = 7;
-
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Duration of the visit, i.e. time spent by the vehicle between arrival and departure (to be added to the possible waiting time; see `time_windows`).
.google.protobuf.Duration duration = 7;- Specified by:
getDurationOrBuilderin interfaceShipment.VisitRequestOrBuilder
-
getCost
public double getCost()
Cost to service this visit request on a vehicle route. This can be used to pay different costs for each alternative pickup or delivery of a shipment. This cost must be in the same unit as `Shipment.penalty_cost` and must not be negative.
double cost = 8;- Specified by:
getCostin interfaceShipment.VisitRequestOrBuilder- Returns:
- The cost.
-
setCost
public Shipment.VisitRequest.Builder setCost(double value)
Cost to service this visit request on a vehicle route. This can be used to pay different costs for each alternative pickup or delivery of a shipment. This cost must be in the same unit as `Shipment.penalty_cost` and must not be negative.
double cost = 8;- Parameters:
value- The cost to set.- Returns:
- This builder for chaining.
-
clearCost
public Shipment.VisitRequest.Builder clearCost()
Cost to service this visit request on a vehicle route. This can be used to pay different costs for each alternative pickup or delivery of a shipment. This cost must be in the same unit as `Shipment.penalty_cost` and must not be negative.
double cost = 8;- Returns:
- This builder for chaining.
-
getLoadDemandsCount
public int getLoadDemandsCount()
Description copied from interface:Shipment.VisitRequestOrBuilderLoad demands of this visit request. This is just like [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] field, except that it only applies to this [VisitRequest][google.cloud.optimization.v1.Shipment.VisitRequest] instead of the whole [Shipment][google.cloud.optimization.v1.Shipment]. The demands listed here are added to the demands listed in [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;- Specified by:
getLoadDemandsCountin interfaceShipment.VisitRequestOrBuilder
-
containsLoadDemands
public boolean containsLoadDemands(String key)
Load demands of this visit request. This is just like [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] field, except that it only applies to this [VisitRequest][google.cloud.optimization.v1.Shipment.VisitRequest] instead of the whole [Shipment][google.cloud.optimization.v1.Shipment]. The demands listed here are added to the demands listed in [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;- Specified by:
containsLoadDemandsin interfaceShipment.VisitRequestOrBuilder
-
getLoadDemands
@Deprecated public Map<String,Shipment.Load> getLoadDemands()
Deprecated.UsegetLoadDemandsMap()instead.- Specified by:
getLoadDemandsin interfaceShipment.VisitRequestOrBuilder
-
getLoadDemandsMap
public Map<String,Shipment.Load> getLoadDemandsMap()
Load demands of this visit request. This is just like [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] field, except that it only applies to this [VisitRequest][google.cloud.optimization.v1.Shipment.VisitRequest] instead of the whole [Shipment][google.cloud.optimization.v1.Shipment]. The demands listed here are added to the demands listed in [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;- Specified by:
getLoadDemandsMapin interfaceShipment.VisitRequestOrBuilder
-
getLoadDemandsOrDefault
public Shipment.Load getLoadDemandsOrDefault(String key, Shipment.Load defaultValue)
Load demands of this visit request. This is just like [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] field, except that it only applies to this [VisitRequest][google.cloud.optimization.v1.Shipment.VisitRequest] instead of the whole [Shipment][google.cloud.optimization.v1.Shipment]. The demands listed here are added to the demands listed in [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;- Specified by:
getLoadDemandsOrDefaultin interfaceShipment.VisitRequestOrBuilder
-
getLoadDemandsOrThrow
public Shipment.Load getLoadDemandsOrThrow(String key)
Load demands of this visit request. This is just like [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] field, except that it only applies to this [VisitRequest][google.cloud.optimization.v1.Shipment.VisitRequest] instead of the whole [Shipment][google.cloud.optimization.v1.Shipment]. The demands listed here are added to the demands listed in [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;- Specified by:
getLoadDemandsOrThrowin interfaceShipment.VisitRequestOrBuilder
-
clearLoadDemands
public Shipment.VisitRequest.Builder clearLoadDemands()
-
removeLoadDemands
public Shipment.VisitRequest.Builder removeLoadDemands(String key)
Load demands of this visit request. This is just like [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] field, except that it only applies to this [VisitRequest][google.cloud.optimization.v1.Shipment.VisitRequest] instead of the whole [Shipment][google.cloud.optimization.v1.Shipment]. The demands listed here are added to the demands listed in [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
-
getMutableLoadDemands
@Deprecated public Map<String,Shipment.Load> getMutableLoadDemands()
Deprecated.Use alternate mutation accessors instead.
-
putLoadDemands
public Shipment.VisitRequest.Builder putLoadDemands(String key, Shipment.Load value)
Load demands of this visit request. This is just like [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] field, except that it only applies to this [VisitRequest][google.cloud.optimization.v1.Shipment.VisitRequest] instead of the whole [Shipment][google.cloud.optimization.v1.Shipment]. The demands listed here are added to the demands listed in [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
-
putAllLoadDemands
public Shipment.VisitRequest.Builder putAllLoadDemands(Map<String,Shipment.Load> values)
Load demands of this visit request. This is just like [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands] field, except that it only applies to this [VisitRequest][google.cloud.optimization.v1.Shipment.VisitRequest] instead of the whole [Shipment][google.cloud.optimization.v1.Shipment]. The demands listed here are added to the demands listed in [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands].
map<string, .google.cloud.optimization.v1.Shipment.Load> load_demands = 12;
-
getVisitTypesList
public com.google.protobuf.ProtocolStringList getVisitTypesList()
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Specified by:
getVisitTypesListin interfaceShipment.VisitRequestOrBuilder- Returns:
- A list containing the visitTypes.
-
getVisitTypesCount
public int getVisitTypesCount()
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Specified by:
getVisitTypesCountin interfaceShipment.VisitRequestOrBuilder- Returns:
- The count of visitTypes.
-
getVisitTypes
public String getVisitTypes(int index)
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Specified by:
getVisitTypesin interfaceShipment.VisitRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The visitTypes at the given index.
-
getVisitTypesBytes
public com.google.protobuf.ByteString getVisitTypesBytes(int index)
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Specified by:
getVisitTypesBytesin interfaceShipment.VisitRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the visitTypes at the given index.
-
setVisitTypes
public Shipment.VisitRequest.Builder setVisitTypes(int index, String value)
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Parameters:
index- The index to set the value at.value- The visitTypes to set.- Returns:
- This builder for chaining.
-
addVisitTypes
public Shipment.VisitRequest.Builder addVisitTypes(String value)
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Parameters:
value- The visitTypes to add.- Returns:
- This builder for chaining.
-
addAllVisitTypes
public Shipment.VisitRequest.Builder addAllVisitTypes(Iterable<String> values)
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Parameters:
values- The visitTypes to add.- Returns:
- This builder for chaining.
-
clearVisitTypes
public Shipment.VisitRequest.Builder clearVisitTypes()
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Returns:
- This builder for chaining.
-
addVisitTypesBytes
public Shipment.VisitRequest.Builder addVisitTypesBytes(com.google.protobuf.ByteString value)
Specifies the types of the visit. This may be used to allocate additional time required for a vehicle to complete this visit (see [Vehicle.extra_visit_duration_for_visit_type][google.cloud.optimization.v1.Vehicle.extra_visit_duration_for_visit_type]). A type can only appear once.
repeated string visit_types = 10;- Parameters:
value- The bytes of the visitTypes to add.- Returns:
- This builder for chaining.
-
getLabel
public String getLabel()
Specifies a label for this `VisitRequest`. This label is reported in the response as `visit_label` in the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 11;- Specified by:
getLabelin interfaceShipment.VisitRequestOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()
Specifies a label for this `VisitRequest`. This label is reported in the response as `visit_label` in the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 11;- Specified by:
getLabelBytesin interfaceShipment.VisitRequestOrBuilder- Returns:
- The bytes for label.
-
setLabel
public Shipment.VisitRequest.Builder setLabel(String value)
Specifies a label for this `VisitRequest`. This label is reported in the response as `visit_label` in the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 11;- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
public Shipment.VisitRequest.Builder clearLabel()
Specifies a label for this `VisitRequest`. This label is reported in the response as `visit_label` in the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 11;- Returns:
- This builder for chaining.
-
setLabelBytes
public Shipment.VisitRequest.Builder setLabelBytes(com.google.protobuf.ByteString value)
Specifies a label for this `VisitRequest`. This label is reported in the response as `visit_label` in the corresponding [ShipmentRoute.Visit][google.cloud.optimization.v1.ShipmentRoute.Visit].
string label = 11;- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
getDemandsList
@Deprecated public List<CapacityQuantity> getDemandsList()
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];- Specified by:
getDemandsListin interfaceShipment.VisitRequestOrBuilder
-
getDemandsCount
@Deprecated public int getDemandsCount()
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];- Specified by:
getDemandsCountin interfaceShipment.VisitRequestOrBuilder
-
getDemands
@Deprecated public CapacityQuantity getDemands(int index)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];- Specified by:
getDemandsin interfaceShipment.VisitRequestOrBuilder
-
setDemands
@Deprecated public Shipment.VisitRequest.Builder setDemands(int index, CapacityQuantity value)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
setDemands
@Deprecated public Shipment.VisitRequest.Builder setDemands(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
addDemands
@Deprecated public Shipment.VisitRequest.Builder addDemands(CapacityQuantity value)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
addDemands
@Deprecated public Shipment.VisitRequest.Builder addDemands(int index, CapacityQuantity value)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
addDemands
@Deprecated public Shipment.VisitRequest.Builder addDemands(CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
addDemands
@Deprecated public Shipment.VisitRequest.Builder addDemands(int index, CapacityQuantity.Builder builderForValue)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
addAllDemands
@Deprecated public Shipment.VisitRequest.Builder addAllDemands(Iterable<? extends CapacityQuantity> values)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
clearDemands
@Deprecated public Shipment.VisitRequest.Builder clearDemands()
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
removeDemands
@Deprecated public Shipment.VisitRequest.Builder removeDemands(int index)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
getDemandsBuilder
@Deprecated public CapacityQuantity.Builder getDemandsBuilder(int index)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
getDemandsOrBuilder
@Deprecated public CapacityQuantityOrBuilder getDemandsOrBuilder(int index)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];- Specified by:
getDemandsOrBuilderin interfaceShipment.VisitRequestOrBuilder
-
getDemandsOrBuilderList
@Deprecated public List<? extends CapacityQuantityOrBuilder> getDemandsOrBuilderList()
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];- Specified by:
getDemandsOrBuilderListin interfaceShipment.VisitRequestOrBuilder
-
addDemandsBuilder
@Deprecated public CapacityQuantity.Builder addDemandsBuilder()
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
addDemandsBuilder
@Deprecated public CapacityQuantity.Builder addDemandsBuilder(int index)
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
getDemandsBuilderList
@Deprecated public List<CapacityQuantity.Builder> getDemandsBuilderList()
Deprecated.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-
setUnknownFields
public final Shipment.VisitRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
mergeUnknownFields
public final Shipment.VisitRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Shipment.VisitRequest.Builder>
-
-