Package com.google.cloud.optimization.v1
Class ShipmentRoute.TravelStep
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.optimization.v1.ShipmentRoute.TravelStep
-
- All Implemented Interfaces:
ShipmentRoute.TravelStepOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ShipmentRoute
@Deprecated public static final class ShipmentRoute.TravelStep extends com.google.protobuf.GeneratedMessageV3 implements ShipmentRoute.TravelStepOrBuilder
Deprecated.Deprecated: Use [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition] instead. Travel between each visit along the route: from the vehicle's `start_location` to the first visit's `arrival_location`, then from the first visit's `departure_location` to the second visit's `arrival_location`, and so on until the vehicle's `end_location`. This accounts only for the actual travel between visits, not counting the waiting time, the time spent performing a visit, nor the distance covered during a visit. Invariant: `travel_steps_size() == visits_size() + 1`. If the vehicle does not have a start_ and/or end_location, the corresponding travel metrics are 0 and/or empty.
Protobuf typegoogle.cloud.optimization.v1.ShipmentRoute.TravelStep- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShipmentRoute.TravelStep.BuilderDeprecated.Deprecated: Use [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition] instead.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDISTANCE_METERS_FIELD_NUMBERDeprecated.static intDURATION_FIELD_NUMBERDeprecated.static intROUTE_POLYLINE_FIELD_NUMBERDeprecated.static intTRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBERDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Deprecated.static ShipmentRoute.TravelStepgetDefaultInstance()Deprecated.ShipmentRoute.TravelStepgetDefaultInstanceForType()Deprecated.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Deprecated.doublegetDistanceMeters()Deprecated.Distance traveled during the step.com.google.protobuf.DurationgetDuration()Deprecated.Duration of the travel step.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()Deprecated.Duration of the travel step.com.google.protobuf.Parser<ShipmentRoute.TravelStep>getParserForType()Deprecated.ShipmentRoute.EncodedPolylinegetRoutePolyline()Deprecated.The encoded polyline representation of the route followed during the step.ShipmentRoute.EncodedPolylineOrBuildergetRoutePolylineOrBuilder()Deprecated.The encoded polyline representation of the route followed during the step.intgetSerializedSize()Deprecated.booleangetTrafficInfoUnavailable()Deprecated.When traffic is requested via [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], and the traffic info couldn't be retrieved for a TravelStep, this boolean is set to true.booleanhasDuration()Deprecated.Duration of the travel step.inthashCode()Deprecated.booleanhasRoutePolyline()Deprecated.The encoded polyline representation of the route followed during the step.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Deprecated.booleanisInitialized()Deprecated.static ShipmentRoute.TravelStep.BuildernewBuilder()Deprecated.static ShipmentRoute.TravelStep.BuildernewBuilder(ShipmentRoute.TravelStep prototype)Deprecated.ShipmentRoute.TravelStep.BuildernewBuilderForType()Deprecated.protected ShipmentRoute.TravelStep.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)Deprecated.protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)Deprecated.static ShipmentRoute.TravelStepparseDelimitedFrom(InputStream input)Deprecated.static ShipmentRoute.TravelStepparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Deprecated.static ShipmentRoute.TravelStepparseFrom(byte[] data)Deprecated.static ShipmentRoute.TravelStepparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Deprecated.static ShipmentRoute.TravelStepparseFrom(com.google.protobuf.ByteString data)Deprecated.static ShipmentRoute.TravelStepparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Deprecated.static ShipmentRoute.TravelStepparseFrom(com.google.protobuf.CodedInputStream input)Deprecated.static ShipmentRoute.TravelStepparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Deprecated.static ShipmentRoute.TravelStepparseFrom(InputStream input)Deprecated.static ShipmentRoute.TravelStepparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Deprecated.static ShipmentRoute.TravelStepparseFrom(ByteBuffer data)Deprecated.static ShipmentRoute.TravelStepparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Deprecated.static com.google.protobuf.Parser<ShipmentRoute.TravelStep>parser()Deprecated.ShipmentRoute.TravelStep.BuildertoBuilder()Deprecated.voidwriteTo(com.google.protobuf.CodedOutputStream output)Deprecated.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
Deprecated.- See Also:
- Constant Field Values
-
DISTANCE_METERS_FIELD_NUMBER
public static final int DISTANCE_METERS_FIELD_NUMBER
Deprecated.- See Also:
- Constant Field Values
-
TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
public static final int TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
Deprecated.- See Also:
- Constant Field Values
-
ROUTE_POLYLINE_FIELD_NUMBER
public static final int ROUTE_POLYLINE_FIELD_NUMBER
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
Deprecated.- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Deprecated.
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Deprecated.- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasDuration
public boolean hasDuration()
Deprecated.Duration of the travel step.
.google.protobuf.Duration duration = 1;- Specified by:
hasDurationin interfaceShipmentRoute.TravelStepOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()
Deprecated.Duration of the travel step.
.google.protobuf.Duration duration = 1;- Specified by:
getDurationin interfaceShipmentRoute.TravelStepOrBuilder- Returns:
- The duration.
-
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
Deprecated.Duration of the travel step.
.google.protobuf.Duration duration = 1;- Specified by:
getDurationOrBuilderin interfaceShipmentRoute.TravelStepOrBuilder
-
getDistanceMeters
public double getDistanceMeters()
Deprecated.Distance traveled during the step.
double distance_meters = 2;- Specified by:
getDistanceMetersin interfaceShipmentRoute.TravelStepOrBuilder- Returns:
- The distanceMeters.
-
getTrafficInfoUnavailable
public boolean getTrafficInfoUnavailable()
Deprecated.When traffic is requested via [OptimizeToursRequest.consider_road_traffic][google.cloud.optimization.v1.OptimizeToursRequest.consider_road_traffic], and the traffic info couldn't be retrieved for a TravelStep, this boolean is set to true. This may be temporary (rare hiccup in the realtime traffic servers) or permanent (no data for this location).
bool traffic_info_unavailable = 3;- Specified by:
getTrafficInfoUnavailablein interfaceShipmentRoute.TravelStepOrBuilder- Returns:
- The trafficInfoUnavailable.
-
hasRoutePolyline
public boolean hasRoutePolyline()
Deprecated.The encoded polyline representation of the route followed during the step. This field is only populated if [OptimizeToursRequest.populate_travel_step_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;- Specified by:
hasRoutePolylinein interfaceShipmentRoute.TravelStepOrBuilder- Returns:
- Whether the routePolyline field is set.
-
getRoutePolyline
public ShipmentRoute.EncodedPolyline getRoutePolyline()
Deprecated.The encoded polyline representation of the route followed during the step. This field is only populated if [OptimizeToursRequest.populate_travel_step_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;- Specified by:
getRoutePolylinein interfaceShipmentRoute.TravelStepOrBuilder- Returns:
- The routePolyline.
-
getRoutePolylineOrBuilder
public ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder()
Deprecated.The encoded polyline representation of the route followed during the step. This field is only populated if [OptimizeToursRequest.populate_travel_step_polylines][google.cloud.optimization.v1.OptimizeToursRequest.populate_travel_step_polylines] is set to true.
.google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 4;- Specified by:
getRoutePolylineOrBuilderin interfaceShipmentRoute.TravelStepOrBuilder
-
isInitialized
public final boolean isInitialized()
Deprecated.- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOExceptionDeprecated.- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
Deprecated.- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
Deprecated.- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
Deprecated.- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
Deprecated.- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
Deprecated.- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
Deprecated.- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
Deprecated.- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
Deprecated.- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
Deprecated.- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(InputStream input) throws IOException
Deprecated.- Throws:
IOException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
Deprecated.- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentRoute.TravelStep parseDelimitedFrom(InputStream input) throws IOException
Deprecated.- Throws:
IOException
-
parseDelimitedFrom
public static ShipmentRoute.TravelStep parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
Deprecated.- Throws:
IOException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
Deprecated.- Throws:
IOException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
Deprecated.- Throws:
IOException
-
newBuilderForType
public ShipmentRoute.TravelStep.Builder newBuilderForType()
Deprecated.- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ShipmentRoute.TravelStep.Builder newBuilder()
Deprecated.
-
newBuilder
public static ShipmentRoute.TravelStep.Builder newBuilder(ShipmentRoute.TravelStep prototype)
Deprecated.
-
toBuilder
public ShipmentRoute.TravelStep.Builder toBuilder()
Deprecated.- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentRoute.TravelStep.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
Deprecated.- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ShipmentRoute.TravelStep getDefaultInstance()
Deprecated.
-
parser
public static com.google.protobuf.Parser<ShipmentRoute.TravelStep> parser()
Deprecated.
-
getParserForType
public com.google.protobuf.Parser<ShipmentRoute.TravelStep> getParserForType()
Deprecated.- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ShipmentRoute.TravelStep getDefaultInstanceForType()
Deprecated.- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-