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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Deprecated.
    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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    static final com.google.protobuf.Descriptors.Descriptor
    Deprecated.
     
    double
    Deprecated.
    Distance traveled during the step.
    com.google.protobuf.Duration
    Deprecated.
    Duration of the travel step.
    com.google.protobuf.DurationOrBuilder
    Deprecated.
    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.
    int
    Deprecated.
     
    boolean
    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
    Deprecated.
    Duration of the travel step.
    int
    Deprecated.
     
    boolean
    Deprecated.
    The encoded polyline representation of the route followed during the step.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
    Deprecated.
     
    final boolean
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
    Deprecated.
     
    Deprecated.
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    Deprecated.
     
    parseFrom(byte[] data)
    Deprecated.
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    Deprecated.
     
    parseFrom(com.google.protobuf.ByteString data)
    Deprecated.
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    Deprecated.
     
    parseFrom(com.google.protobuf.CodedInputStream input)
    Deprecated.
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    Deprecated.
     
    Deprecated.
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    Deprecated.
     
    Deprecated.
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
    Deprecated.
     
    static com.google.protobuf.Parser<ShipmentRoute.TravelStep>
    Deprecated.
     
    Deprecated.
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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_NUMBER
      Deprecated.
      See Also:
    • DISTANCE_METERS_FIELD_NUMBER

      public static final int DISTANCE_METERS_FIELD_NUMBER
      Deprecated.
      See Also:
    • TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER

      public static final int TRAFFIC_INFO_UNAVAILABLE_FIELD_NUMBER
      Deprecated.
      See Also:
    • ROUTE_POLYLINE_FIELD_NUMBER

      public static final int ROUTE_POLYLINE_FIELD_NUMBER
      Deprecated.
      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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasDuration

      public boolean hasDuration()
      Deprecated.
       Duration of the travel step.
       
      .google.protobuf.Duration duration = 1;
      Specified by:
      hasDuration in interface ShipmentRoute.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 interface ShipmentRoute.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 interface ShipmentRoute.TravelStepOrBuilder
    • getDistanceMeters

      public double getDistanceMeters()
      Deprecated.
       Distance traveled during the step.
       
      double distance_meters = 2;
      Specified by:
      getDistanceMeters in interface ShipmentRoute.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 interface ShipmentRoute.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 interface ShipmentRoute.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 interface ShipmentRoute.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 interface ShipmentRoute.TravelStepOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Deprecated.
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Deprecated.
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Deprecated.
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Deprecated.
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Deprecated.
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ShipmentRoute.TravelStep.Builder newBuilder()
      Deprecated.
    • newBuilder

      public static ShipmentRoute.TravelStep.Builder newBuilder(ShipmentRoute.TravelStep prototype)
      Deprecated.
    • toBuilder

      Deprecated.
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ShipmentRoute.TravelStep.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Deprecated.
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ShipmentRoute.TravelStep getDefaultInstanceForType()
      Deprecated.
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder