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.GeneratedMessage.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.GeneratedMessage.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 type
google.cloud.optimization.v1.Shipment.VisitRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllDemands(Iterable<? extends CapacityQuantity> values) Deprecated.addAllTags(Iterable<String> values) Specifies tags attached to the visit request.addAllTimeWindows(Iterable<? extends TimeWindow> values) Time windows which constrain the arrival time at a visit.addAllVisitTypes(Iterable<String> values) Specifies the types of the visit.addDemands(int index, CapacityQuantity value) Deprecated.addDemands(int index, CapacityQuantity.Builder builderForValue) Deprecated.addDemands(CapacityQuantity value) Deprecated.addDemands(CapacityQuantity.Builder builderForValue) Deprecated.Deprecated.addDemandsBuilder(int index) Deprecated.Specifies tags attached to the visit request.addTagsBytes(com.google.protobuf.ByteString value) Specifies tags attached to the visit request.addTimeWindows(int index, TimeWindow value) Time windows which constrain the arrival time at a visit.addTimeWindows(int index, TimeWindow.Builder builderForValue) Time windows which constrain the arrival time at a visit.addTimeWindows(TimeWindow value) Time windows which constrain the arrival time at a visit.addTimeWindows(TimeWindow.Builder builderForValue) Time windows which constrain the arrival time at a visit.Time windows which constrain the arrival time at a visit.addTimeWindowsBuilder(int index) Time windows which constrain the arrival time at a visit.addVisitTypes(String value) Specifies the types of the visit.addVisitTypesBytes(com.google.protobuf.ByteString value) Specifies the types of the visit.build()clear()The geo-location where the vehicle arrives when performing this `VisitRequest`.The waypoint where the vehicle arrives when performing this `VisitRequest`.Cost to service this visit request on a vehicle route.Deprecated.The geo-location where the vehicle departs after completing this `VisitRequest`.The waypoint where the vehicle departs after completing this `VisitRequest`.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`).Specifies a label for this `VisitRequest`.Specifies tags attached to the visit request.Time windows which constrain the arrival time at a visit.Specifies the types of the visit.booleanLoad demands of this visit request.The geo-location where the vehicle arrives when performing this `VisitRequest`.The geo-location where the vehicle arrives when performing this `VisitRequest`.The geo-location where the vehicle arrives when performing this `VisitRequest`.The waypoint where the vehicle arrives when performing this `VisitRequest`.The waypoint where the vehicle arrives when performing this `VisitRequest`.The waypoint where the vehicle arrives when performing this `VisitRequest`.doublegetCost()Cost to service this visit request on a vehicle route.getDemands(int index) Deprecated.getDemandsBuilder(int index) Deprecated.Deprecated.intDeprecated.Deprecated.getDemandsOrBuilder(int index) Deprecated.List<? extends CapacityQuantityOrBuilder>Deprecated.The geo-location where the vehicle departs after completing this `VisitRequest`.The geo-location where the vehicle departs after completing this `VisitRequest`.The geo-location where the vehicle departs after completing this `VisitRequest`.The waypoint where the vehicle departs after completing this `VisitRequest`.The waypoint where the vehicle departs after completing this `VisitRequest`.The waypoint where the vehicle departs after completing this `VisitRequest`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.DurationDuration 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`).com.google.protobuf.Duration.BuilderDuration 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`).com.google.protobuf.DurationOrBuilderDuration 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`).getLabel()Specifies a label for this `VisitRequest`.com.google.protobuf.ByteStringSpecifies a label for this `VisitRequest`.Deprecated.intLoad demands of this visit request.Load demands of this visit request.getLoadDemandsOrDefault(String key, Shipment.Load defaultValue) Load demands of this visit request.Load demands of this visit request.Deprecated.getTags(int index) Specifies tags attached to the visit request.com.google.protobuf.ByteStringgetTagsBytes(int index) Specifies tags attached to the visit request.intSpecifies tags attached to the visit request.com.google.protobuf.ProtocolStringListSpecifies tags attached to the visit request.getTimeWindows(int index) Time windows which constrain the arrival time at a visit.getTimeWindowsBuilder(int index) Time windows which constrain the arrival time at a visit.Time windows which constrain the arrival time at a visit.intTime windows which constrain the arrival time at a visit.Time windows which constrain the arrival time at a visit.getTimeWindowsOrBuilder(int index) Time windows which constrain the arrival time at a visit.List<? extends TimeWindowOrBuilder>Time windows which constrain the arrival time at a visit.getVisitTypes(int index) Specifies the types of the visit.com.google.protobuf.ByteStringgetVisitTypesBytes(int index) Specifies the types of the visit.intSpecifies the types of the visit.com.google.protobuf.ProtocolStringListSpecifies the types of the visit.booleanThe geo-location where the vehicle arrives when performing this `VisitRequest`.booleanThe waypoint where the vehicle arrives when performing this `VisitRequest`.booleanThe geo-location where the vehicle departs after completing this `VisitRequest`.booleanThe waypoint where the vehicle departs after completing this `VisitRequest`.booleanDuration 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`).protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeArrivalLocation(LatLng value) The geo-location where the vehicle arrives when performing this `VisitRequest`.mergeArrivalWaypoint(Waypoint value) The waypoint where the vehicle arrives when performing this `VisitRequest`.mergeDepartureLocation(LatLng value) The geo-location where the vehicle departs after completing this `VisitRequest`.mergeDepartureWaypoint(Waypoint value) The waypoint where the vehicle departs after completing this `VisitRequest`.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`).mergeFrom(Shipment.VisitRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) putAllLoadDemands(Map<String, Shipment.Load> values) Load demands of this visit request.putLoadDemands(String key, Shipment.Load value) Load demands of this visit request.Load demands of this visit request.removeDemands(int index) Deprecated.removeLoadDemands(String key) Load demands of this visit request.removeTimeWindows(int index) Time windows which constrain the arrival time at a visit.setArrivalLocation(LatLng value) The geo-location where the vehicle arrives when performing this `VisitRequest`.setArrivalLocation(LatLng.Builder builderForValue) The geo-location where the vehicle arrives when performing this `VisitRequest`.setArrivalWaypoint(Waypoint value) The waypoint where the vehicle arrives when performing this `VisitRequest`.setArrivalWaypoint(Waypoint.Builder builderForValue) The waypoint where the vehicle arrives when performing this `VisitRequest`.setCost(double value) Cost to service this visit request on a vehicle route.setDemands(int index, CapacityQuantity value) Deprecated.setDemands(int index, CapacityQuantity.Builder builderForValue) Deprecated.setDepartureLocation(LatLng value) The geo-location where the vehicle departs after completing this `VisitRequest`.setDepartureLocation(LatLng.Builder builderForValue) The geo-location where the vehicle departs after completing this `VisitRequest`.setDepartureWaypoint(Waypoint value) The waypoint where the vehicle departs after completing this `VisitRequest`.setDepartureWaypoint(Waypoint.Builder builderForValue) The waypoint where the vehicle departs after completing this `VisitRequest`.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`).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`).Specifies a label for this `VisitRequest`.setLabelBytes(com.google.protobuf.ByteString value) Specifies a label for this `VisitRequest`.Specifies tags attached to the visit request.setTimeWindows(int index, TimeWindow value) Time windows which constrain the arrival time at a visit.setTimeWindows(int index, TimeWindow.Builder builderForValue) Time windows which constrain the arrival time at a visit.setVisitTypes(int index, String value) Specifies the types of the visit.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Shipment.VisitRequest.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Shipment.VisitRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.Builder<Shipment.VisitRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Shipment.VisitRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Specifies tags attached to the visit request. Empty or duplicate strings are not allowed.
repeated string tags = 5;- Returns:
- This builder for chaining.
-
addTagsBytes
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.UsegetLoadDemandsMap()instead.- Specified by:
getLoadDemandsin interfaceShipment.VisitRequestOrBuilder
-
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
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
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
-
removeLoadDemands
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.Use alternate mutation accessors instead. -
putLoadDemands
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
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; -
putLoadDemandsBuilderIfAbsent
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
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
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
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
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
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
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
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
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
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
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.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.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.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.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.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.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.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.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.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.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.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.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.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.Deprecated: Use [VisitRequest.load_demands][google.cloud.optimization.v1.Shipment.VisitRequest.load_demands] instead.
repeated .google.cloud.optimization.v1.CapacityQuantity demands = 9 [deprecated = true];
-