Class AggregatedMetrics.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AggregatedMetrics.Builder>
com.google.cloud.optimization.v1.AggregatedMetrics.Builder
All Implemented Interfaces:
AggregatedMetricsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AggregatedMetrics

public static final class AggregatedMetrics.Builder extends com.google.protobuf.GeneratedMessage.Builder<AggregatedMetrics.Builder> implements AggregatedMetricsOrBuilder
 Aggregated metrics for
 [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute] (resp. for
 [OptimizeToursResponse][google.cloud.optimization.v1.OptimizeToursResponse]
 over all [Transition][google.cloud.optimization.v1.ShipmentRoute.Transition]
 and/or [Visit][google.cloud.optimization.v1.ShipmentRoute.Visit] (resp. over
 all [ShipmentRoute][google.cloud.optimization.v1.ShipmentRoute]) elements.
 
Protobuf type google.cloud.optimization.v1.AggregatedMetrics
  • 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<AggregatedMetrics.Builder>
    • internalGetMutableMapFieldReflection

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

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

      public AggregatedMetrics.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<AggregatedMetrics.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<AggregatedMetrics.Builder>
    • getDefaultInstanceForType

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

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

      public AggregatedMetrics buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AggregatedMetrics.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<AggregatedMetrics.Builder>
    • mergeFrom

      public AggregatedMetrics.Builder mergeFrom(AggregatedMetrics other)
    • isInitialized

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

      public AggregatedMetrics.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<AggregatedMetrics.Builder>
      Throws:
      IOException
    • getPerformedShipmentCount

      public int getPerformedShipmentCount()
       Number of shipments performed. Note that a pickup and delivery pair only
       counts once.
       
      int32 performed_shipment_count = 1;
      Specified by:
      getPerformedShipmentCount in interface AggregatedMetricsOrBuilder
      Returns:
      The performedShipmentCount.
    • setPerformedShipmentCount

      public AggregatedMetrics.Builder setPerformedShipmentCount(int value)
       Number of shipments performed. Note that a pickup and delivery pair only
       counts once.
       
      int32 performed_shipment_count = 1;
      Parameters:
      value - The performedShipmentCount to set.
      Returns:
      This builder for chaining.
    • clearPerformedShipmentCount

      public AggregatedMetrics.Builder clearPerformedShipmentCount()
       Number of shipments performed. Note that a pickup and delivery pair only
       counts once.
       
      int32 performed_shipment_count = 1;
      Returns:
      This builder for chaining.
    • hasTravelDuration

      public boolean hasTravelDuration()
       Total travel duration for a route or a solution.
       
      .google.protobuf.Duration travel_duration = 2;
      Specified by:
      hasTravelDuration in interface AggregatedMetricsOrBuilder
      Returns:
      Whether the travelDuration field is set.
    • getTravelDuration

      public com.google.protobuf.Duration getTravelDuration()
       Total travel duration for a route or a solution.
       
      .google.protobuf.Duration travel_duration = 2;
      Specified by:
      getTravelDuration in interface AggregatedMetricsOrBuilder
      Returns:
      The travelDuration.
    • setTravelDuration

      public AggregatedMetrics.Builder setTravelDuration(com.google.protobuf.Duration value)
       Total travel duration for a route or a solution.
       
      .google.protobuf.Duration travel_duration = 2;
    • setTravelDuration

      public AggregatedMetrics.Builder setTravelDuration(com.google.protobuf.Duration.Builder builderForValue)
       Total travel duration for a route or a solution.
       
      .google.protobuf.Duration travel_duration = 2;
    • mergeTravelDuration

      public AggregatedMetrics.Builder mergeTravelDuration(com.google.protobuf.Duration value)
       Total travel duration for a route or a solution.
       
      .google.protobuf.Duration travel_duration = 2;
    • clearTravelDuration

      public AggregatedMetrics.Builder clearTravelDuration()
       Total travel duration for a route or a solution.
       
      .google.protobuf.Duration travel_duration = 2;
    • getTravelDurationBuilder

      public com.google.protobuf.Duration.Builder getTravelDurationBuilder()
       Total travel duration for a route or a solution.
       
      .google.protobuf.Duration travel_duration = 2;
    • getTravelDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getTravelDurationOrBuilder()
       Total travel duration for a route or a solution.
       
      .google.protobuf.Duration travel_duration = 2;
      Specified by:
      getTravelDurationOrBuilder in interface AggregatedMetricsOrBuilder
    • hasWaitDuration

      public boolean hasWaitDuration()
       Total wait duration for a route or a solution.
       
      .google.protobuf.Duration wait_duration = 3;
      Specified by:
      hasWaitDuration in interface AggregatedMetricsOrBuilder
      Returns:
      Whether the waitDuration field is set.
    • getWaitDuration

      public com.google.protobuf.Duration getWaitDuration()
       Total wait duration for a route or a solution.
       
      .google.protobuf.Duration wait_duration = 3;
      Specified by:
      getWaitDuration in interface AggregatedMetricsOrBuilder
      Returns:
      The waitDuration.
    • setWaitDuration

      public AggregatedMetrics.Builder setWaitDuration(com.google.protobuf.Duration value)
       Total wait duration for a route or a solution.
       
      .google.protobuf.Duration wait_duration = 3;
    • setWaitDuration

      public AggregatedMetrics.Builder setWaitDuration(com.google.protobuf.Duration.Builder builderForValue)
       Total wait duration for a route or a solution.
       
      .google.protobuf.Duration wait_duration = 3;
    • mergeWaitDuration

      public AggregatedMetrics.Builder mergeWaitDuration(com.google.protobuf.Duration value)
       Total wait duration for a route or a solution.
       
      .google.protobuf.Duration wait_duration = 3;
    • clearWaitDuration

      public AggregatedMetrics.Builder clearWaitDuration()
       Total wait duration for a route or a solution.
       
      .google.protobuf.Duration wait_duration = 3;
    • getWaitDurationBuilder

      public com.google.protobuf.Duration.Builder getWaitDurationBuilder()
       Total wait duration for a route or a solution.
       
      .google.protobuf.Duration wait_duration = 3;
    • getWaitDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getWaitDurationOrBuilder()
       Total wait duration for a route or a solution.
       
      .google.protobuf.Duration wait_duration = 3;
      Specified by:
      getWaitDurationOrBuilder in interface AggregatedMetricsOrBuilder
    • hasDelayDuration

      public boolean hasDelayDuration()
       Total delay duration for a route or a solution.
       
      .google.protobuf.Duration delay_duration = 4;
      Specified by:
      hasDelayDuration in interface AggregatedMetricsOrBuilder
      Returns:
      Whether the delayDuration field is set.
    • getDelayDuration

      public com.google.protobuf.Duration getDelayDuration()
       Total delay duration for a route or a solution.
       
      .google.protobuf.Duration delay_duration = 4;
      Specified by:
      getDelayDuration in interface AggregatedMetricsOrBuilder
      Returns:
      The delayDuration.
    • setDelayDuration

      public AggregatedMetrics.Builder setDelayDuration(com.google.protobuf.Duration value)
       Total delay duration for a route or a solution.
       
      .google.protobuf.Duration delay_duration = 4;
    • setDelayDuration

      public AggregatedMetrics.Builder setDelayDuration(com.google.protobuf.Duration.Builder builderForValue)
       Total delay duration for a route or a solution.
       
      .google.protobuf.Duration delay_duration = 4;
    • mergeDelayDuration

      public AggregatedMetrics.Builder mergeDelayDuration(com.google.protobuf.Duration value)
       Total delay duration for a route or a solution.
       
      .google.protobuf.Duration delay_duration = 4;
    • clearDelayDuration

      public AggregatedMetrics.Builder clearDelayDuration()
       Total delay duration for a route or a solution.
       
      .google.protobuf.Duration delay_duration = 4;
    • getDelayDurationBuilder

      public com.google.protobuf.Duration.Builder getDelayDurationBuilder()
       Total delay duration for a route or a solution.
       
      .google.protobuf.Duration delay_duration = 4;
    • getDelayDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDelayDurationOrBuilder()
       Total delay duration for a route or a solution.
       
      .google.protobuf.Duration delay_duration = 4;
      Specified by:
      getDelayDurationOrBuilder in interface AggregatedMetricsOrBuilder
    • hasBreakDuration

      public boolean hasBreakDuration()
       Total break duration for a route or a solution.
       
      .google.protobuf.Duration break_duration = 5;
      Specified by:
      hasBreakDuration in interface AggregatedMetricsOrBuilder
      Returns:
      Whether the breakDuration field is set.
    • getBreakDuration

      public com.google.protobuf.Duration getBreakDuration()
       Total break duration for a route or a solution.
       
      .google.protobuf.Duration break_duration = 5;
      Specified by:
      getBreakDuration in interface AggregatedMetricsOrBuilder
      Returns:
      The breakDuration.
    • setBreakDuration

      public AggregatedMetrics.Builder setBreakDuration(com.google.protobuf.Duration value)
       Total break duration for a route or a solution.
       
      .google.protobuf.Duration break_duration = 5;
    • setBreakDuration

      public AggregatedMetrics.Builder setBreakDuration(com.google.protobuf.Duration.Builder builderForValue)
       Total break duration for a route or a solution.
       
      .google.protobuf.Duration break_duration = 5;
    • mergeBreakDuration

      public AggregatedMetrics.Builder mergeBreakDuration(com.google.protobuf.Duration value)
       Total break duration for a route or a solution.
       
      .google.protobuf.Duration break_duration = 5;
    • clearBreakDuration

      public AggregatedMetrics.Builder clearBreakDuration()
       Total break duration for a route or a solution.
       
      .google.protobuf.Duration break_duration = 5;
    • getBreakDurationBuilder

      public com.google.protobuf.Duration.Builder getBreakDurationBuilder()
       Total break duration for a route or a solution.
       
      .google.protobuf.Duration break_duration = 5;
    • getBreakDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getBreakDurationOrBuilder()
       Total break duration for a route or a solution.
       
      .google.protobuf.Duration break_duration = 5;
      Specified by:
      getBreakDurationOrBuilder in interface AggregatedMetricsOrBuilder
    • hasVisitDuration

      public boolean hasVisitDuration()
       Total visit duration for a route or a solution.
       
      .google.protobuf.Duration visit_duration = 6;
      Specified by:
      hasVisitDuration in interface AggregatedMetricsOrBuilder
      Returns:
      Whether the visitDuration field is set.
    • getVisitDuration

      public com.google.protobuf.Duration getVisitDuration()
       Total visit duration for a route or a solution.
       
      .google.protobuf.Duration visit_duration = 6;
      Specified by:
      getVisitDuration in interface AggregatedMetricsOrBuilder
      Returns:
      The visitDuration.
    • setVisitDuration

      public AggregatedMetrics.Builder setVisitDuration(com.google.protobuf.Duration value)
       Total visit duration for a route or a solution.
       
      .google.protobuf.Duration visit_duration = 6;
    • setVisitDuration

      public AggregatedMetrics.Builder setVisitDuration(com.google.protobuf.Duration.Builder builderForValue)
       Total visit duration for a route or a solution.
       
      .google.protobuf.Duration visit_duration = 6;
    • mergeVisitDuration

      public AggregatedMetrics.Builder mergeVisitDuration(com.google.protobuf.Duration value)
       Total visit duration for a route or a solution.
       
      .google.protobuf.Duration visit_duration = 6;
    • clearVisitDuration

      public AggregatedMetrics.Builder clearVisitDuration()
       Total visit duration for a route or a solution.
       
      .google.protobuf.Duration visit_duration = 6;
    • getVisitDurationBuilder

      public com.google.protobuf.Duration.Builder getVisitDurationBuilder()
       Total visit duration for a route or a solution.
       
      .google.protobuf.Duration visit_duration = 6;
    • getVisitDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getVisitDurationOrBuilder()
       Total visit duration for a route or a solution.
       
      .google.protobuf.Duration visit_duration = 6;
      Specified by:
      getVisitDurationOrBuilder in interface AggregatedMetricsOrBuilder
    • hasTotalDuration

      public boolean hasTotalDuration()
       The total duration should be equal to the sum of all durations above.
       For routes, it also corresponds to:
       [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]
       `-`
       [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
       
      .google.protobuf.Duration total_duration = 7;
      Specified by:
      hasTotalDuration in interface AggregatedMetricsOrBuilder
      Returns:
      Whether the totalDuration field is set.
    • getTotalDuration

      public com.google.protobuf.Duration getTotalDuration()
       The total duration should be equal to the sum of all durations above.
       For routes, it also corresponds to:
       [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]
       `-`
       [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
       
      .google.protobuf.Duration total_duration = 7;
      Specified by:
      getTotalDuration in interface AggregatedMetricsOrBuilder
      Returns:
      The totalDuration.
    • setTotalDuration

      public AggregatedMetrics.Builder setTotalDuration(com.google.protobuf.Duration value)
       The total duration should be equal to the sum of all durations above.
       For routes, it also corresponds to:
       [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]
       `-`
       [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
       
      .google.protobuf.Duration total_duration = 7;
    • setTotalDuration

      public AggregatedMetrics.Builder setTotalDuration(com.google.protobuf.Duration.Builder builderForValue)
       The total duration should be equal to the sum of all durations above.
       For routes, it also corresponds to:
       [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]
       `-`
       [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
       
      .google.protobuf.Duration total_duration = 7;
    • mergeTotalDuration

      public AggregatedMetrics.Builder mergeTotalDuration(com.google.protobuf.Duration value)
       The total duration should be equal to the sum of all durations above.
       For routes, it also corresponds to:
       [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]
       `-`
       [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
       
      .google.protobuf.Duration total_duration = 7;
    • clearTotalDuration

      public AggregatedMetrics.Builder clearTotalDuration()
       The total duration should be equal to the sum of all durations above.
       For routes, it also corresponds to:
       [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]
       `-`
       [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
       
      .google.protobuf.Duration total_duration = 7;
    • getTotalDurationBuilder

      public com.google.protobuf.Duration.Builder getTotalDurationBuilder()
       The total duration should be equal to the sum of all durations above.
       For routes, it also corresponds to:
       [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]
       `-`
       [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
       
      .google.protobuf.Duration total_duration = 7;
    • getTotalDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getTotalDurationOrBuilder()
       The total duration should be equal to the sum of all durations above.
       For routes, it also corresponds to:
       [ShipmentRoute.vehicle_end_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_end_time]
       `-`
       [ShipmentRoute.vehicle_start_time][google.cloud.optimization.v1.ShipmentRoute.vehicle_start_time]
       
      .google.protobuf.Duration total_duration = 7;
      Specified by:
      getTotalDurationOrBuilder in interface AggregatedMetricsOrBuilder
    • getTravelDistanceMeters

      public double getTravelDistanceMeters()
       Total travel distance for a route or a solution.
       
      double travel_distance_meters = 8;
      Specified by:
      getTravelDistanceMeters in interface AggregatedMetricsOrBuilder
      Returns:
      The travelDistanceMeters.
    • setTravelDistanceMeters

      public AggregatedMetrics.Builder setTravelDistanceMeters(double value)
       Total travel distance for a route or a solution.
       
      double travel_distance_meters = 8;
      Parameters:
      value - The travelDistanceMeters to set.
      Returns:
      This builder for chaining.
    • clearTravelDistanceMeters

      public AggregatedMetrics.Builder clearTravelDistanceMeters()
       Total travel distance for a route or a solution.
       
      double travel_distance_meters = 8;
      Returns:
      This builder for chaining.
    • getMaxLoadsCount

      public int getMaxLoadsCount()
      Description copied from interface: AggregatedMetricsOrBuilder
       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
      Specified by:
      getMaxLoadsCount in interface AggregatedMetricsOrBuilder
    • containsMaxLoads

      public boolean containsMaxLoads(String key)
       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
      Specified by:
      containsMaxLoads in interface AggregatedMetricsOrBuilder
    • getMaxLoads

      Deprecated.
      Use getMaxLoadsMap() instead.
      Specified by:
      getMaxLoads in interface AggregatedMetricsOrBuilder
    • getMaxLoadsMap

      public Map<String,ShipmentRoute.VehicleLoad> getMaxLoadsMap()
       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
      Specified by:
      getMaxLoadsMap in interface AggregatedMetricsOrBuilder
    • getMaxLoadsOrDefault

      public ShipmentRoute.VehicleLoad getMaxLoadsOrDefault(String key, ShipmentRoute.VehicleLoad defaultValue)
       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
      Specified by:
      getMaxLoadsOrDefault in interface AggregatedMetricsOrBuilder
    • getMaxLoadsOrThrow

      public ShipmentRoute.VehicleLoad getMaxLoadsOrThrow(String key)
       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
      Specified by:
      getMaxLoadsOrThrow in interface AggregatedMetricsOrBuilder
    • clearMaxLoads

      public AggregatedMetrics.Builder clearMaxLoads()
    • removeMaxLoads

      public AggregatedMetrics.Builder removeMaxLoads(String key)
       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
    • getMutableMaxLoads

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

       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
    • putAllMaxLoads

       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
    • putMaxLoadsBuilderIfAbsent

      public ShipmentRoute.VehicleLoad.Builder putMaxLoadsBuilderIfAbsent(String key)
       Maximum load achieved over the entire route (resp. solution), for each of
       the quantities on this route (resp. solution), computed as the maximum over
       all
       [Transition.vehicle_loads][google.cloud.optimization.v1.ShipmentRoute.Transition.vehicle_loads]
       (resp.
       [ShipmentRoute.metrics.max_loads][google.cloud.optimization.v1.AggregatedMetrics.max_loads].
       
      map<string, .google.cloud.optimization.v1.ShipmentRoute.VehicleLoad> max_loads = 9;
    • getCostsCount

      @Deprecated public int getCostsCount()
      Deprecated.
      Description copied from interface: AggregatedMetricsOrBuilder
       Deprecated: Use
       [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
       and
       [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs]
       instead.
       
      map<string, double> costs = 10 [deprecated = true];
      Specified by:
      getCostsCount in interface AggregatedMetricsOrBuilder
    • containsCosts

      @Deprecated public boolean containsCosts(String key)
      Deprecated.
       Deprecated: Use
       [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
       and
       [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs]
       instead.
       
      map<string, double> costs = 10 [deprecated = true];
      Specified by:
      containsCosts in interface AggregatedMetricsOrBuilder
    • getCosts

      @Deprecated public Map<String,Double> getCosts()
      Deprecated.
      Use getCostsMap() instead.
      Specified by:
      getCosts in interface AggregatedMetricsOrBuilder
    • getCostsMap

      @Deprecated public Map<String,Double> getCostsMap()
      Deprecated.
       Deprecated: Use
       [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
       and
       [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs]
       instead.
       
      map<string, double> costs = 10 [deprecated = true];
      Specified by:
      getCostsMap in interface AggregatedMetricsOrBuilder
    • getCostsOrDefault

      @Deprecated public double getCostsOrDefault(String key, double defaultValue)
      Deprecated.
       Deprecated: Use
       [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
       and
       [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs]
       instead.
       
      map<string, double> costs = 10 [deprecated = true];
      Specified by:
      getCostsOrDefault in interface AggregatedMetricsOrBuilder
    • getCostsOrThrow

      @Deprecated public double getCostsOrThrow(String key)
      Deprecated.
       Deprecated: Use
       [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
       and
       [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs]
       instead.
       
      map<string, double> costs = 10 [deprecated = true];
      Specified by:
      getCostsOrThrow in interface AggregatedMetricsOrBuilder
    • clearCosts

      Deprecated.
    • removeCosts

      @Deprecated public AggregatedMetrics.Builder removeCosts(String key)
      Deprecated.
       Deprecated: Use
       [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
       and
       [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs]
       instead.
       
      map<string, double> costs = 10 [deprecated = true];
    • getMutableCosts

      @Deprecated public Map<String,Double> getMutableCosts()
      Deprecated.
      Use alternate mutation accessors instead.
    • putCosts

      @Deprecated public AggregatedMetrics.Builder putCosts(String key, double value)
      Deprecated.
       Deprecated: Use
       [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
       and
       [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs]
       instead.
       
      map<string, double> costs = 10 [deprecated = true];
    • putAllCosts

      @Deprecated public AggregatedMetrics.Builder putAllCosts(Map<String,Double> values)
      Deprecated.
       Deprecated: Use
       [ShipmentRoute.route_costs][google.cloud.optimization.v1.ShipmentRoute.route_costs]
       and
       [OptimizeToursResponse.Metrics.costs][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.costs]
       instead.
       
      map<string, double> costs = 10 [deprecated = true];
    • getTotalCost

      @Deprecated public double getTotalCost()
      Deprecated.
      google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2381
       Deprecated: Use
       [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
       and
       [OptimizeToursResponse.Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
       instead.
       
      double total_cost = 11 [deprecated = true];
      Specified by:
      getTotalCost in interface AggregatedMetricsOrBuilder
      Returns:
      The totalCost.
    • setTotalCost

      @Deprecated public AggregatedMetrics.Builder setTotalCost(double value)
      Deprecated.
      google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2381
       Deprecated: Use
       [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
       and
       [OptimizeToursResponse.Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
       instead.
       
      double total_cost = 11 [deprecated = true];
      Parameters:
      value - The totalCost to set.
      Returns:
      This builder for chaining.
    • clearTotalCost

      @Deprecated public AggregatedMetrics.Builder clearTotalCost()
      Deprecated.
      google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=2381
       Deprecated: Use
       [ShipmentRoute.route_total_cost][google.cloud.optimization.v1.ShipmentRoute.route_total_cost]
       and
       [OptimizeToursResponse.Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
       instead.
       
      double total_cost = 11 [deprecated = true];
      Returns:
      This builder for chaining.