Class ShipmentRoute.Transition.Builder

  • All Implemented Interfaces:
    ShipmentRoute.TransitionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ShipmentRoute.Transition

    public static final class ShipmentRoute.Transition.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
    implements ShipmentRoute.TransitionOrBuilder
     Transition between two events on the route. See the description of
     [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute].
    
     If the vehicle does not have a `start_location` and/or `end_location`, the
     corresponding travel metrics are 0.
     
    Protobuf type google.cloud.optimization.v1.ShipmentRoute.Transition
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
      • getDefaultInstanceForType

        public ShipmentRoute.Transition getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ShipmentRoute.Transition build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ShipmentRoute.Transition buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public ShipmentRoute.Transition.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
      • addRepeatedField

        public ShipmentRoute.Transition.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
      • mergeFrom

        public ShipmentRoute.Transition.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Transition.Builder>
        Throws:
        IOException
      • hasTravelDuration

        public boolean hasTravelDuration()
         Travel duration during this transition.
         
        .google.protobuf.Duration travel_duration = 1;
        Specified by:
        hasTravelDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        Whether the travelDuration field is set.
      • getTravelDuration

        public com.google.protobuf.Duration getTravelDuration()
         Travel duration during this transition.
         
        .google.protobuf.Duration travel_duration = 1;
        Specified by:
        getTravelDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        The travelDuration.
      • setTravelDuration

        public ShipmentRoute.Transition.Builder setTravelDuration​(com.google.protobuf.Duration value)
         Travel duration during this transition.
         
        .google.protobuf.Duration travel_duration = 1;
      • setTravelDuration

        public ShipmentRoute.Transition.Builder setTravelDuration​(com.google.protobuf.Duration.Builder builderForValue)
         Travel duration during this transition.
         
        .google.protobuf.Duration travel_duration = 1;
      • mergeTravelDuration

        public ShipmentRoute.Transition.Builder mergeTravelDuration​(com.google.protobuf.Duration value)
         Travel duration during this transition.
         
        .google.protobuf.Duration travel_duration = 1;
      • clearTravelDuration

        public ShipmentRoute.Transition.Builder clearTravelDuration()
         Travel duration during this transition.
         
        .google.protobuf.Duration travel_duration = 1;
      • getTravelDurationBuilder

        public com.google.protobuf.Duration.Builder getTravelDurationBuilder()
         Travel duration during this transition.
         
        .google.protobuf.Duration travel_duration = 1;
      • setTravelDistanceMeters

        public ShipmentRoute.Transition.Builder setTravelDistanceMeters​(double value)
         Distance traveled during the transition.
         
        double travel_distance_meters = 2;
        Parameters:
        value - The travelDistanceMeters to set.
        Returns:
        This builder for chaining.
      • clearTravelDistanceMeters

        public ShipmentRoute.Transition.Builder clearTravelDistanceMeters()
         Distance traveled during the transition.
         
        double travel_distance_meters = 2;
        Returns:
        This builder for chaining.
      • getTrafficInfoUnavailable

        public boolean getTrafficInfoUnavailable()
         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 `Transition`, 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.TransitionOrBuilder
        Returns:
        The trafficInfoUnavailable.
      • setTrafficInfoUnavailable

        public ShipmentRoute.Transition.Builder setTrafficInfoUnavailable​(boolean value)
         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 `Transition`, 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;
        Parameters:
        value - The trafficInfoUnavailable to set.
        Returns:
        This builder for chaining.
      • clearTrafficInfoUnavailable

        public ShipmentRoute.Transition.Builder clearTrafficInfoUnavailable()
         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 `Transition`, 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;
        Returns:
        This builder for chaining.
      • hasDelayDuration

        public boolean hasDelayDuration()
         Sum of the delay durations applied to this transition. If any, the delay
         starts exactly `delay_duration` seconds before the next event (visit or
         vehicle end). See
         [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
         
        .google.protobuf.Duration delay_duration = 4;
        Specified by:
        hasDelayDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        Whether the delayDuration field is set.
      • getDelayDuration

        public com.google.protobuf.Duration getDelayDuration()
         Sum of the delay durations applied to this transition. If any, the delay
         starts exactly `delay_duration` seconds before the next event (visit or
         vehicle end). See
         [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
         
        .google.protobuf.Duration delay_duration = 4;
        Specified by:
        getDelayDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        The delayDuration.
      • setDelayDuration

        public ShipmentRoute.Transition.Builder setDelayDuration​(com.google.protobuf.Duration value)
         Sum of the delay durations applied to this transition. If any, the delay
         starts exactly `delay_duration` seconds before the next event (visit or
         vehicle end). See
         [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
         
        .google.protobuf.Duration delay_duration = 4;
      • setDelayDuration

        public ShipmentRoute.Transition.Builder setDelayDuration​(com.google.protobuf.Duration.Builder builderForValue)
         Sum of the delay durations applied to this transition. If any, the delay
         starts exactly `delay_duration` seconds before the next event (visit or
         vehicle end). See
         [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
         
        .google.protobuf.Duration delay_duration = 4;
      • mergeDelayDuration

        public ShipmentRoute.Transition.Builder mergeDelayDuration​(com.google.protobuf.Duration value)
         Sum of the delay durations applied to this transition. If any, the delay
         starts exactly `delay_duration` seconds before the next event (visit or
         vehicle end). See
         [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
         
        .google.protobuf.Duration delay_duration = 4;
      • clearDelayDuration

        public ShipmentRoute.Transition.Builder clearDelayDuration()
         Sum of the delay durations applied to this transition. If any, the delay
         starts exactly `delay_duration` seconds before the next event (visit or
         vehicle end). See
         [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
         
        .google.protobuf.Duration delay_duration = 4;
      • getDelayDurationBuilder

        public com.google.protobuf.Duration.Builder getDelayDurationBuilder()
         Sum of the delay durations applied to this transition. If any, the delay
         starts exactly `delay_duration` seconds before the next event (visit or
         vehicle end). See
         [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
         
        .google.protobuf.Duration delay_duration = 4;
      • getDelayDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder()
         Sum of the delay durations applied to this transition. If any, the delay
         starts exactly `delay_duration` seconds before the next event (visit or
         vehicle end). See
         [TransitionAttributes.delay][google.cloud.optimization.v1.TransitionAttributes.delay].
         
        .google.protobuf.Duration delay_duration = 4;
        Specified by:
        getDelayDurationOrBuilder in interface ShipmentRoute.TransitionOrBuilder
      • hasBreakDuration

        public boolean hasBreakDuration()
         Sum of the duration of the breaks occurring during this transition, if
         any. Details about each break's start time and duration are stored in
         [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
         
        .google.protobuf.Duration break_duration = 5;
        Specified by:
        hasBreakDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        Whether the breakDuration field is set.
      • getBreakDuration

        public com.google.protobuf.Duration getBreakDuration()
         Sum of the duration of the breaks occurring during this transition, if
         any. Details about each break's start time and duration are stored in
         [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
         
        .google.protobuf.Duration break_duration = 5;
        Specified by:
        getBreakDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        The breakDuration.
      • setBreakDuration

        public ShipmentRoute.Transition.Builder setBreakDuration​(com.google.protobuf.Duration value)
         Sum of the duration of the breaks occurring during this transition, if
         any. Details about each break's start time and duration are stored in
         [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
         
        .google.protobuf.Duration break_duration = 5;
      • setBreakDuration

        public ShipmentRoute.Transition.Builder setBreakDuration​(com.google.protobuf.Duration.Builder builderForValue)
         Sum of the duration of the breaks occurring during this transition, if
         any. Details about each break's start time and duration are stored in
         [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
         
        .google.protobuf.Duration break_duration = 5;
      • mergeBreakDuration

        public ShipmentRoute.Transition.Builder mergeBreakDuration​(com.google.protobuf.Duration value)
         Sum of the duration of the breaks occurring during this transition, if
         any. Details about each break's start time and duration are stored in
         [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
         
        .google.protobuf.Duration break_duration = 5;
      • clearBreakDuration

        public ShipmentRoute.Transition.Builder clearBreakDuration()
         Sum of the duration of the breaks occurring during this transition, if
         any. Details about each break's start time and duration are stored in
         [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
         
        .google.protobuf.Duration break_duration = 5;
      • getBreakDurationBuilder

        public com.google.protobuf.Duration.Builder getBreakDurationBuilder()
         Sum of the duration of the breaks occurring during this transition, if
         any. Details about each break's start time and duration are stored in
         [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
         
        .google.protobuf.Duration break_duration = 5;
      • getBreakDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder()
         Sum of the duration of the breaks occurring during this transition, if
         any. Details about each break's start time and duration are stored in
         [ShipmentRoute.breaks][google.cloud.optimization.v1.ShipmentRoute.breaks].
         
        .google.protobuf.Duration break_duration = 5;
        Specified by:
        getBreakDurationOrBuilder in interface ShipmentRoute.TransitionOrBuilder
      • hasWaitDuration

        public boolean hasWaitDuration()
         Time spent waiting during this transition. Wait duration corresponds to
         idle time and does not include break time. Also note that this wait time
         may be split into several non-contiguous intervals.
         
        .google.protobuf.Duration wait_duration = 6;
        Specified by:
        hasWaitDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        Whether the waitDuration field is set.
      • getWaitDuration

        public com.google.protobuf.Duration getWaitDuration()
         Time spent waiting during this transition. Wait duration corresponds to
         idle time and does not include break time. Also note that this wait time
         may be split into several non-contiguous intervals.
         
        .google.protobuf.Duration wait_duration = 6;
        Specified by:
        getWaitDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        The waitDuration.
      • setWaitDuration

        public ShipmentRoute.Transition.Builder setWaitDuration​(com.google.protobuf.Duration value)
         Time spent waiting during this transition. Wait duration corresponds to
         idle time and does not include break time. Also note that this wait time
         may be split into several non-contiguous intervals.
         
        .google.protobuf.Duration wait_duration = 6;
      • setWaitDuration

        public ShipmentRoute.Transition.Builder setWaitDuration​(com.google.protobuf.Duration.Builder builderForValue)
         Time spent waiting during this transition. Wait duration corresponds to
         idle time and does not include break time. Also note that this wait time
         may be split into several non-contiguous intervals.
         
        .google.protobuf.Duration wait_duration = 6;
      • mergeWaitDuration

        public ShipmentRoute.Transition.Builder mergeWaitDuration​(com.google.protobuf.Duration value)
         Time spent waiting during this transition. Wait duration corresponds to
         idle time and does not include break time. Also note that this wait time
         may be split into several non-contiguous intervals.
         
        .google.protobuf.Duration wait_duration = 6;
      • clearWaitDuration

        public ShipmentRoute.Transition.Builder clearWaitDuration()
         Time spent waiting during this transition. Wait duration corresponds to
         idle time and does not include break time. Also note that this wait time
         may be split into several non-contiguous intervals.
         
        .google.protobuf.Duration wait_duration = 6;
      • getWaitDurationBuilder

        public com.google.protobuf.Duration.Builder getWaitDurationBuilder()
         Time spent waiting during this transition. Wait duration corresponds to
         idle time and does not include break time. Also note that this wait time
         may be split into several non-contiguous intervals.
         
        .google.protobuf.Duration wait_duration = 6;
      • getWaitDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder()
         Time spent waiting during this transition. Wait duration corresponds to
         idle time and does not include break time. Also note that this wait time
         may be split into several non-contiguous intervals.
         
        .google.protobuf.Duration wait_duration = 6;
        Specified by:
        getWaitDurationOrBuilder in interface ShipmentRoute.TransitionOrBuilder
      • hasTotalDuration

        public boolean hasTotalDuration()
         Total duration of the transition, provided for convenience. It is equal
         to:
        
         * next visit `start_time` (or `vehicle_end_time` if this is the last
         transition) - this transition's `start_time`;
         * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following
         additionally holds: `total_duration = travel_duration + delay_duration
         + break_duration + wait_duration`.
         
        .google.protobuf.Duration total_duration = 7;
        Specified by:
        hasTotalDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        Whether the totalDuration field is set.
      • getTotalDuration

        public com.google.protobuf.Duration getTotalDuration()
         Total duration of the transition, provided for convenience. It is equal
         to:
        
         * next visit `start_time` (or `vehicle_end_time` if this is the last
         transition) - this transition's `start_time`;
         * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following
         additionally holds: `total_duration = travel_duration + delay_duration
         + break_duration + wait_duration`.
         
        .google.protobuf.Duration total_duration = 7;
        Specified by:
        getTotalDuration in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        The totalDuration.
      • setTotalDuration

        public ShipmentRoute.Transition.Builder setTotalDuration​(com.google.protobuf.Duration value)
         Total duration of the transition, provided for convenience. It is equal
         to:
        
         * next visit `start_time` (or `vehicle_end_time` if this is the last
         transition) - this transition's `start_time`;
         * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following
         additionally holds: `total_duration = travel_duration + delay_duration
         + break_duration + wait_duration`.
         
        .google.protobuf.Duration total_duration = 7;
      • setTotalDuration

        public ShipmentRoute.Transition.Builder setTotalDuration​(com.google.protobuf.Duration.Builder builderForValue)
         Total duration of the transition, provided for convenience. It is equal
         to:
        
         * next visit `start_time` (or `vehicle_end_time` if this is the last
         transition) - this transition's `start_time`;
         * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following
         additionally holds: `total_duration = travel_duration + delay_duration
         + break_duration + wait_duration`.
         
        .google.protobuf.Duration total_duration = 7;
      • mergeTotalDuration

        public ShipmentRoute.Transition.Builder mergeTotalDuration​(com.google.protobuf.Duration value)
         Total duration of the transition, provided for convenience. It is equal
         to:
        
         * next visit `start_time` (or `vehicle_end_time` if this is the last
         transition) - this transition's `start_time`;
         * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following
         additionally holds: `total_duration = travel_duration + delay_duration
         + break_duration + wait_duration`.
         
        .google.protobuf.Duration total_duration = 7;
      • clearTotalDuration

        public ShipmentRoute.Transition.Builder clearTotalDuration()
         Total duration of the transition, provided for convenience. It is equal
         to:
        
         * next visit `start_time` (or `vehicle_end_time` if this is the last
         transition) - this transition's `start_time`;
         * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following
         additionally holds: `total_duration = travel_duration + delay_duration
         + break_duration + wait_duration`.
         
        .google.protobuf.Duration total_duration = 7;
      • getTotalDurationBuilder

        public com.google.protobuf.Duration.Builder getTotalDurationBuilder()
         Total duration of the transition, provided for convenience. It is equal
         to:
        
         * next visit `start_time` (or `vehicle_end_time` if this is the last
         transition) - this transition's `start_time`;
         * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following
         additionally holds: `total_duration = travel_duration + delay_duration
         + break_duration + wait_duration`.
         
        .google.protobuf.Duration total_duration = 7;
      • getTotalDurationOrBuilder

        public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder()
         Total duration of the transition, provided for convenience. It is equal
         to:
        
         * next visit `start_time` (or `vehicle_end_time` if this is the last
         transition) - this transition's `start_time`;
         * if `ShipmentRoute.has_traffic_infeasibilities` is false, the following
         additionally holds: `total_duration = travel_duration + delay_duration
         + break_duration + wait_duration`.
         
        .google.protobuf.Duration total_duration = 7;
        Specified by:
        getTotalDurationOrBuilder in interface ShipmentRoute.TransitionOrBuilder
      • hasStartTime

        public boolean hasStartTime()
         Start time of this transition.
         
        .google.protobuf.Timestamp start_time = 8;
        Specified by:
        hasStartTime in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Start time of this transition.
         
        .google.protobuf.Timestamp start_time = 8;
        Specified by:
        getStartTime in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public ShipmentRoute.Transition.Builder setStartTime​(com.google.protobuf.Timestamp value)
         Start time of this transition.
         
        .google.protobuf.Timestamp start_time = 8;
      • setStartTime

        public ShipmentRoute.Transition.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Start time of this transition.
         
        .google.protobuf.Timestamp start_time = 8;
      • mergeStartTime

        public ShipmentRoute.Transition.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         Start time of this transition.
         
        .google.protobuf.Timestamp start_time = 8;
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Start time of this transition.
         
        .google.protobuf.Timestamp start_time = 8;
      • hasRoutePolyline

        public boolean hasRoutePolyline()
         The encoded polyline representation of the route followed during the
         transition.
         This field is only populated if [populate_transition_polylines]
         [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
         is set to true.
         
        .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
        Specified by:
        hasRoutePolyline in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        Whether the routePolyline field is set.
      • getRoutePolyline

        public ShipmentRoute.EncodedPolyline getRoutePolyline()
         The encoded polyline representation of the route followed during the
         transition.
         This field is only populated if [populate_transition_polylines]
         [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
         is set to true.
         
        .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
        Specified by:
        getRoutePolyline in interface ShipmentRoute.TransitionOrBuilder
        Returns:
        The routePolyline.
      • setRoutePolyline

        public ShipmentRoute.Transition.Builder setRoutePolyline​(ShipmentRoute.EncodedPolyline value)
         The encoded polyline representation of the route followed during the
         transition.
         This field is only populated if [populate_transition_polylines]
         [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
         is set to true.
         
        .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      • setRoutePolyline

        public ShipmentRoute.Transition.Builder setRoutePolyline​(ShipmentRoute.EncodedPolyline.Builder builderForValue)
         The encoded polyline representation of the route followed during the
         transition.
         This field is only populated if [populate_transition_polylines]
         [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
         is set to true.
         
        .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      • mergeRoutePolyline

        public ShipmentRoute.Transition.Builder mergeRoutePolyline​(ShipmentRoute.EncodedPolyline value)
         The encoded polyline representation of the route followed during the
         transition.
         This field is only populated if [populate_transition_polylines]
         [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
         is set to true.
         
        .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      • clearRoutePolyline

        public ShipmentRoute.Transition.Builder clearRoutePolyline()
         The encoded polyline representation of the route followed during the
         transition.
         This field is only populated if [populate_transition_polylines]
         [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
         is set to true.
         
        .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      • getRoutePolylineBuilder

        public ShipmentRoute.EncodedPolyline.Builder getRoutePolylineBuilder()
         The encoded polyline representation of the route followed during the
         transition.
         This field is only populated if [populate_transition_polylines]
         [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
         is set to true.
         
        .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
      • getRoutePolylineOrBuilder

        public ShipmentRoute.EncodedPolylineOrBuilder getRoutePolylineOrBuilder()
         The encoded polyline representation of the route followed during the
         transition.
         This field is only populated if [populate_transition_polylines]
         [google.cloud.optimization.v1.OptimizeToursRequest.populate_transition_polylines]
         is set to true.
         
        .google.cloud.optimization.v1.ShipmentRoute.EncodedPolyline route_polyline = 9;
        Specified by:
        getRoutePolylineOrBuilder in interface ShipmentRoute.TransitionOrBuilder
      • getVehicleLoadsCount

        public int getVehicleLoadsCount()
        Description copied from interface: ShipmentRoute.TransitionOrBuilder
         Vehicle loads during this transition, for each type that either appears
         in this vehicle's
         [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits],
         or that have non-zero
         [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
         on some shipment performed on this route.
        
         The loads during the first transition are the starting loads of the
         vehicle route. Then, after each visit, the visit's `load_demands` are
         either added or subtracted to get the next transition's loads, depending
         on whether the visit was a pickup or a delivery.
         
        map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
        Specified by:
        getVehicleLoadsCount in interface ShipmentRoute.TransitionOrBuilder
      • containsVehicleLoads

        public boolean containsVehicleLoads​(String key)
         Vehicle loads during this transition, for each type that either appears
         in this vehicle's
         [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits],
         or that have non-zero
         [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
         on some shipment performed on this route.
        
         The loads during the first transition are the starting loads of the
         vehicle route. Then, after each visit, the visit's `load_demands` are
         either added or subtracted to get the next transition's loads, depending
         on whether the visit was a pickup or a delivery.
         
        map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
        Specified by:
        containsVehicleLoads in interface ShipmentRoute.TransitionOrBuilder
      • getVehicleLoadsMap

        public Map<String,​ShipmentRoute.VehicleLoad> getVehicleLoadsMap()
         Vehicle loads during this transition, for each type that either appears
         in this vehicle's
         [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits],
         or that have non-zero
         [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
         on some shipment performed on this route.
        
         The loads during the first transition are the starting loads of the
         vehicle route. Then, after each visit, the visit's `load_demands` are
         either added or subtracted to get the next transition's loads, depending
         on whether the visit was a pickup or a delivery.
         
        map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
        Specified by:
        getVehicleLoadsMap in interface ShipmentRoute.TransitionOrBuilder
      • getVehicleLoadsOrDefault

        public ShipmentRoute.VehicleLoad getVehicleLoadsOrDefault​(String key,
                                                                  ShipmentRoute.VehicleLoad defaultValue)
         Vehicle loads during this transition, for each type that either appears
         in this vehicle's
         [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits],
         or that have non-zero
         [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
         on some shipment performed on this route.
        
         The loads during the first transition are the starting loads of the
         vehicle route. Then, after each visit, the visit's `load_demands` are
         either added or subtracted to get the next transition's loads, depending
         on whether the visit was a pickup or a delivery.
         
        map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
        Specified by:
        getVehicleLoadsOrDefault in interface ShipmentRoute.TransitionOrBuilder
      • getVehicleLoadsOrThrow

        public ShipmentRoute.VehicleLoad getVehicleLoadsOrThrow​(String key)
         Vehicle loads during this transition, for each type that either appears
         in this vehicle's
         [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits],
         or that have non-zero
         [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
         on some shipment performed on this route.
        
         The loads during the first transition are the starting loads of the
         vehicle route. Then, after each visit, the visit's `load_demands` are
         either added or subtracted to get the next transition's loads, depending
         on whether the visit was a pickup or a delivery.
         
        map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
        Specified by:
        getVehicleLoadsOrThrow in interface ShipmentRoute.TransitionOrBuilder
      • removeVehicleLoads

        public ShipmentRoute.Transition.Builder removeVehicleLoads​(String key)
         Vehicle loads during this transition, for each type that either appears
         in this vehicle's
         [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits],
         or that have non-zero
         [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
         on some shipment performed on this route.
        
         The loads during the first transition are the starting loads of the
         vehicle route. Then, after each visit, the visit's `load_demands` are
         either added or subtracted to get the next transition's loads, depending
         on whether the visit was a pickup or a delivery.
         
        map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
      • putVehicleLoads

        public ShipmentRoute.Transition.Builder putVehicleLoads​(String key,
                                                                ShipmentRoute.VehicleLoad value)
         Vehicle loads during this transition, for each type that either appears
         in this vehicle's
         [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits],
         or that have non-zero
         [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
         on some shipment performed on this route.
        
         The loads during the first transition are the starting loads of the
         vehicle route. Then, after each visit, the visit's `load_demands` are
         either added or subtracted to get the next transition's loads, depending
         on whether the visit was a pickup or a delivery.
         
        map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
      • putAllVehicleLoads

        public ShipmentRoute.Transition.Builder putAllVehicleLoads​(Map<String,​ShipmentRoute.VehicleLoad> values)
         Vehicle loads during this transition, for each type that either appears
         in this vehicle's
         [Vehicle.load_limits][google.cloud.optimization.v1.Vehicle.load_limits],
         or that have non-zero
         [Shipment.load_demands][google.cloud.optimization.v1.Shipment.load_demands]
         on some shipment performed on this route.
        
         The loads during the first transition are the starting loads of the
         vehicle route. Then, after each visit, the visit's `load_demands` are
         either added or subtracted to get the next transition's loads, depending
         on whether the visit was a pickup or a delivery.
         
        map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> vehicle_loads = 11;
      • getLoadsCount

        @Deprecated
        public int getLoadsCount()
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
        Specified by:
        getLoadsCount in interface ShipmentRoute.TransitionOrBuilder
      • getLoads

        @Deprecated
        public CapacityQuantity getLoads​(int index)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
        Specified by:
        getLoads in interface ShipmentRoute.TransitionOrBuilder
      • setLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder setLoads​(int index,
                                                         CapacityQuantity value)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • setLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder setLoads​(int index,
                                                         CapacityQuantity.Builder builderForValue)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • addLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder addLoads​(CapacityQuantity value)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • addLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder addLoads​(int index,
                                                         CapacityQuantity value)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • addLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder addLoads​(CapacityQuantity.Builder builderForValue)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • addLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder addLoads​(int index,
                                                         CapacityQuantity.Builder builderForValue)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • addAllLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder addAllLoads​(Iterable<? extends CapacityQuantity> values)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • clearLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder clearLoads()
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • removeLoads

        @Deprecated
        public ShipmentRoute.Transition.Builder removeLoads​(int index)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • getLoadsBuilder

        @Deprecated
        public CapacityQuantity.Builder getLoadsBuilder​(int index)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • addLoadsBuilder

        @Deprecated
        public CapacityQuantity.Builder addLoadsBuilder()
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • addLoadsBuilder

        @Deprecated
        public CapacityQuantity.Builder addLoadsBuilder​(int index)
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • getLoadsBuilderList

        @Deprecated
        public List<CapacityQuantity.Builder> getLoadsBuilderList()
        Deprecated.
         Deprecated: Use
         [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
         instead.
         
        repeated .google.cloud.optimization.v1.CapacityQuantity loads = 10 [deprecated = true];
      • setUnknownFields

        public final ShipmentRoute.Transition.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>
      • mergeUnknownFields

        public final ShipmentRoute.Transition.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ShipmentRoute.Transition.Builder>