Package com.google.cloud.optimization.v1
Class ShipmentRoute.TravelStep
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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.GeneratedMessage
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 type
google.cloud.optimization.v1.ShipmentRoute.TravelStep- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.Deprecated: Use [ShipmentRoute.Transition][google.cloud.optimization.v1.ShipmentRoute.Transition] instead.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.static ShipmentRoute.TravelStepDeprecated.Deprecated.static final com.google.protobuf.Descriptors.DescriptorDeprecated.doubleDeprecated.Distance traveled during the step.com.google.protobuf.DurationDeprecated.Duration of the travel step.com.google.protobuf.DurationOrBuilderDeprecated.Duration of the travel step.com.google.protobuf.Parser<ShipmentRoute.TravelStep>Deprecated.Deprecated.The encoded polyline representation of the route followed during the step.Deprecated.The encoded polyline representation of the route followed during the step.intDeprecated.booleanDeprecated.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.booleanDeprecated.Duration of the travel step.inthashCode()Deprecated.booleanDeprecated.The encoded polyline representation of the route followed during the step.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableDeprecated.final booleanDeprecated.Deprecated.newBuilder(ShipmentRoute.TravelStep prototype) Deprecated.Deprecated.protected ShipmentRoute.TravelStep.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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.Deprecated.voidwriteTo(com.google.protobuf.CodedOutputStream output) Deprecated.Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBERDeprecated.- See Also:
-
DISTANCE_METERS_FIELD_NUMBER
public static final int DISTANCE_METERS_FIELD_NUMBERDeprecated.- See Also:
-
TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
public static final int TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBERDeprecated.- See Also:
-
ROUTE_POLYLINE_FIELD_NUMBER
public static final int ROUTE_POLYLINE_FIELD_NUMBERDeprecated.- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()Deprecated. -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()Deprecated.- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.
-
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
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
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.GeneratedMessage
-
writeTo
Deprecated.- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()Deprecated.- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
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
Deprecated.- Throws:
IOException
-
parseFrom
public static ShipmentRoute.TravelStep parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException Deprecated.- Throws:
IOException
-
parseDelimitedFrom
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
Deprecated.- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
Deprecated. -
newBuilder
Deprecated. -
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.AbstractMessage.BuilderParent parent) Deprecated.- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
Deprecated. -
parser
Deprecated. -
getParserForType
Deprecated.- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
Deprecated.- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-