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 class
ShipmentRoute.TravelStep.Builder
Deprecated.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 int
DISTANCE_METERS_FIELD_NUMBER
Deprecated.static int
DURATION_FIELD_NUMBER
Deprecated.static int
ROUTE_POLYLINE_FIELD_NUMBER
Deprecated.static int
TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
Deprecated.static ShipmentRoute.TravelStep
getDefaultInstance()
Deprecated.ShipmentRoute.TravelStep
getDefaultInstanceForType()
Deprecated.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Deprecated.double
getDistanceMeters()
Deprecated.Distance traveled during the step.com.google.protobuf.Duration
getDuration()
Deprecated.Duration of the travel step.com.google.protobuf.DurationOrBuilder
getDurationOrBuilder()
Deprecated.Duration of the travel step.com.google.protobuf.Parser<ShipmentRoute.TravelStep>
getParserForType()
Deprecated.ShipmentRoute.EncodedPolyline
getRoutePolyline()
Deprecated.The encoded polyline representation of the route followed during the step.ShipmentRoute.EncodedPolylineOrBuilder
getRoutePolylineOrBuilder()
Deprecated.The encoded polyline representation of the route followed during the step.int
getSerializedSize()
Deprecated.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.boolean
hasDuration()
Deprecated.Duration of the travel step.int
hashCode()
Deprecated.boolean
hasRoutePolyline()
Deprecated.The encoded polyline representation of the route followed during the step.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
Deprecated.boolean
isInitialized()
Deprecated.static ShipmentRoute.TravelStep.Builder
newBuilder()
Deprecated.static ShipmentRoute.TravelStep.Builder
newBuilder(ShipmentRoute.TravelStep prototype)
Deprecated.ShipmentRoute.TravelStep.Builder
newBuilderForType()
Deprecated.protected ShipmentRoute.TravelStep.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
Deprecated.protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
Deprecated.static ShipmentRoute.TravelStep
parseDelimitedFrom(InputStream input)
Deprecated.static ShipmentRoute.TravelStep
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(byte[] data)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(com.google.protobuf.ByteString data)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(com.google.protobuf.CodedInputStream input)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(InputStream input)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(ByteBuffer data)
Deprecated.static ShipmentRoute.TravelStep
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Deprecated.static com.google.protobuf.Parser<ShipmentRoute.TravelStep>
parser()
Deprecated.ShipmentRoute.TravelStep.Builder
toBuilder()
Deprecated.void
writeTo(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:
newInstance
in 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasDuration
public boolean hasDuration()
Deprecated.Duration of the travel step.
.google.protobuf.Duration duration = 1;
- Specified by:
hasDuration
in 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:
getDuration
in 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:
getDurationOrBuilder
in interfaceShipmentRoute.TravelStepOrBuilder
-
getDistanceMeters
public double getDistanceMeters()
Deprecated.Distance traveled during the step.
double distance_meters = 2;
- Specified by:
getDistanceMeters
in 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:
getTrafficInfoUnavailable
in 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:
hasRoutePolyline
in 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:
getRoutePolyline
in 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:
getRoutePolylineOrBuilder
in interfaceShipmentRoute.TravelStepOrBuilder
-
isInitialized
public final boolean isInitialized()
Deprecated.- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
Deprecated.- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
Deprecated.- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
Deprecated.- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
Deprecated.- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ShipmentRoute.TravelStep.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
Deprecated.- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ShipmentRoute.TravelStep getDefaultInstanceForType()
Deprecated.- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-