Class AggregatedMetrics

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.optimization.v1.AggregatedMetrics
All Implemented Interfaces:
AggregatedMetricsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AggregatedMetrics extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Nested Class Summary

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

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

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

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

    com.google.protobuf.AbstractMessage.BuilderParent

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

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

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

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    boolean
    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.
    boolean
     
    com.google.protobuf.Duration
    Total break duration for a route or a solution.
    com.google.protobuf.DurationOrBuilder
    Total break duration for a route or a solution.
    Deprecated.
    int
    Deprecated.
    Deprecated.
    double
    getCostsOrDefault(String key, double defaultValue)
    Deprecated.
    double
    Deprecated.
     
     
    com.google.protobuf.Duration
    Total delay duration for a route or a solution.
    com.google.protobuf.DurationOrBuilder
    Total delay duration for a route or a solution.
    static final com.google.protobuf.Descriptors.Descriptor
     
    Deprecated.
    int
    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.
    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.
    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.
    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.
    com.google.protobuf.Parser<AggregatedMetrics>
     
    int
    Number of shipments performed.
    int
     
    double
    Deprecated.
    google.cloud.optimization.v1.AggregatedMetrics.total_cost is deprecated.
    com.google.protobuf.Duration
    The total duration should be equal to the sum of all durations above.
    com.google.protobuf.DurationOrBuilder
    The total duration should be equal to the sum of all durations above.
    double
    Total travel distance for a route or a solution.
    com.google.protobuf.Duration
    Total travel duration for a route or a solution.
    com.google.protobuf.DurationOrBuilder
    Total travel duration for a route or a solution.
    com.google.protobuf.Duration
    Total visit duration for a route or a solution.
    com.google.protobuf.DurationOrBuilder
    Total visit duration for a route or a solution.
    com.google.protobuf.Duration
    Total wait duration for a route or a solution.
    com.google.protobuf.DurationOrBuilder
    Total wait duration for a route or a solution.
    boolean
    Total break duration for a route or a solution.
    boolean
    Total delay duration for a route or a solution.
    int
     
    boolean
    The total duration should be equal to the sum of all durations above.
    boolean
    Total travel duration for a route or a solution.
    boolean
    Total visit duration for a route or a solution.
    boolean
    Total wait duration for a route or a solution.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AggregatedMetrics>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • PERFORMED_SHIPMENT_COUNT_FIELD_NUMBER

      public static final int PERFORMED_SHIPMENT_COUNT_FIELD_NUMBER
      See Also:
    • TRAVEL_DURATION_FIELD_NUMBER

      public static final int TRAVEL_DURATION_FIELD_NUMBER
      See Also:
    • WAIT_DURATION_FIELD_NUMBER

      public static final int WAIT_DURATION_FIELD_NUMBER
      See Also:
    • DELAY_DURATION_FIELD_NUMBER

      public static final int DELAY_DURATION_FIELD_NUMBER
      See Also:
    • BREAK_DURATION_FIELD_NUMBER

      public static final int BREAK_DURATION_FIELD_NUMBER
      See Also:
    • VISIT_DURATION_FIELD_NUMBER

      public static final int VISIT_DURATION_FIELD_NUMBER
      See Also:
    • TOTAL_DURATION_FIELD_NUMBER

      public static final int TOTAL_DURATION_FIELD_NUMBER
      See Also:
    • TRAVEL_DISTANCE_METERS_FIELD_NUMBER

      public static final int TRAVEL_DISTANCE_METERS_FIELD_NUMBER
      See Also:
    • MAX_LOADS_FIELD_NUMBER

      public static final int MAX_LOADS_FIELD_NUMBER
      See Also:
    • COSTS_FIELD_NUMBER

      public static final int COSTS_FIELD_NUMBER
      See Also:
    • TOTAL_COST_FIELD_NUMBER

      public static final int TOTAL_COST_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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
    • 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
    • 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.
    • isInitialized

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

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

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

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

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AggregatedMetrics parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AggregatedMetrics parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AggregatedMetrics parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AggregatedMetrics parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AggregatedMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AggregatedMetrics parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AggregatedMetrics parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AggregatedMetrics parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AggregatedMetrics parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AggregatedMetrics parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AggregatedMetrics parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AggregatedMetrics parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static AggregatedMetrics.Builder newBuilder()
    • newBuilder

      public static AggregatedMetrics.Builder newBuilder(AggregatedMetrics prototype)
    • toBuilder

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

      protected AggregatedMetrics.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AggregatedMetrics getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AggregatedMetrics> parser()
    • getParserForType

      public com.google.protobuf.Parser<AggregatedMetrics> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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