Class ShipmentRoute.Transition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
com.google.cloud.optimization.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<ShipmentRoute.Transition.Builder>
    • internalGetFieldAccessorTable

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

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public ShipmentRoute.Transition.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ShipmentRoute.Transition.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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;
    • getTravelDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder()
       Travel duration during this transition.
       
      .google.protobuf.Duration travel_duration = 1;
      Specified by:
      getTravelDurationOrBuilder in interface ShipmentRoute.TransitionOrBuilder
    • getTravelDistanceMeters

      public double getTravelDistanceMeters()
       Distance traveled during the transition.
       
      double travel_distance_meters = 2;
      Specified by:
      getTravelDistanceMeters in interface ShipmentRoute.TransitionOrBuilder
      Returns:
      The travelDistanceMeters.
    • 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;
    • clearStartTime

      public ShipmentRoute.Transition.Builder clearStartTime()
       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;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Start time of this transition.
       
      .google.protobuf.Timestamp start_time = 8;
      Specified by:
      getStartTimeOrBuilder in interface ShipmentRoute.TransitionOrBuilder
    • 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

       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

       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

       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
    • getVehicleLoads

      @Deprecated public Map<String,ShipmentRoute.VehicleLoad> getVehicleLoads()
      Deprecated.
      Specified by:
      getVehicleLoads 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
    • clearVehicleLoads

      public ShipmentRoute.Transition.Builder clearVehicleLoads()
    • 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;
    • getMutableVehicleLoads

      @Deprecated public Map<String,ShipmentRoute.VehicleLoad> getMutableVehicleLoads()
      Deprecated.
      Use alternate mutation accessors instead.
    • putVehicleLoads

       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

       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;
    • putVehicleLoadsBuilderIfAbsent

      public ShipmentRoute.VehicleLoad.Builder putVehicleLoadsBuilderIfAbsent(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;
    • getLoadsList

      @Deprecated public List<CapacityQuantity> getLoadsList()
      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:
      getLoadsList in interface ShipmentRoute.TransitionOrBuilder
    • 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.
       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.
       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.
       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.
       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];
    • getLoadsOrBuilder

      @Deprecated public CapacityQuantityOrBuilder getLoadsOrBuilder(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:
      getLoadsOrBuilder in interface ShipmentRoute.TransitionOrBuilder
    • getLoadsOrBuilderList

      @Deprecated public List<? extends CapacityQuantityOrBuilder> getLoadsOrBuilderList()
      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:
      getLoadsOrBuilderList in interface ShipmentRoute.TransitionOrBuilder
    • 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];