Class 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 type google.cloud.optimization.v1.ShipmentRoute.TravelStep
    See Also:
    Serialized Form
    • 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 class com.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 class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Deprecated.
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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
      • toBuilder

        public ShipmentRoute.TravelStep.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Deprecated.
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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