Class OptimizeToursResponse.Builder

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

public static final class OptimizeToursResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<OptimizeToursResponse.Builder> implements OptimizeToursResponseOrBuilder
 Response after solving a tour optimization problem containing the routes
 followed by each vehicle, the shipments which have been skipped and the
 overall cost of the solution.
 
Protobuf type google.cloud.optimization.v1.OptimizeToursResponse
  • Method Details

    • getDescriptor

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

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

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

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

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

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

      public OptimizeToursResponse.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<OptimizeToursResponse.Builder>
      Throws:
      IOException
    • getRoutesList

      public List<ShipmentRoute> getRoutesList()
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutesList in interface OptimizeToursResponseOrBuilder
    • getRoutesCount

      public int getRoutesCount()
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutesCount in interface OptimizeToursResponseOrBuilder
    • getRoutes

      public ShipmentRoute getRoutes(int index)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutes in interface OptimizeToursResponseOrBuilder
    • setRoutes

      public OptimizeToursResponse.Builder setRoutes(int index, ShipmentRoute value)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • setRoutes

      public OptimizeToursResponse.Builder setRoutes(int index, ShipmentRoute.Builder builderForValue)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • addRoutes

      public OptimizeToursResponse.Builder addRoutes(ShipmentRoute value)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • addRoutes

      public OptimizeToursResponse.Builder addRoutes(int index, ShipmentRoute value)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • addRoutes

      public OptimizeToursResponse.Builder addRoutes(ShipmentRoute.Builder builderForValue)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • addRoutes

      public OptimizeToursResponse.Builder addRoutes(int index, ShipmentRoute.Builder builderForValue)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • addAllRoutes

      public OptimizeToursResponse.Builder addAllRoutes(Iterable<? extends ShipmentRoute> values)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • clearRoutes

      public OptimizeToursResponse.Builder clearRoutes()
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • removeRoutes

      public OptimizeToursResponse.Builder removeRoutes(int index)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • getRoutesBuilder

      public ShipmentRoute.Builder getRoutesBuilder(int index)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • getRoutesOrBuilder

      public ShipmentRouteOrBuilder getRoutesOrBuilder(int index)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutesOrBuilder in interface OptimizeToursResponseOrBuilder
    • getRoutesOrBuilderList

      public List<? extends ShipmentRouteOrBuilder> getRoutesOrBuilderList()
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
      Specified by:
      getRoutesOrBuilderList in interface OptimizeToursResponseOrBuilder
    • addRoutesBuilder

      public ShipmentRoute.Builder addRoutesBuilder()
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • addRoutesBuilder

      public ShipmentRoute.Builder addRoutesBuilder(int index)
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • getRoutesBuilderList

      public List<ShipmentRoute.Builder> getRoutesBuilderList()
       Routes computed for each vehicle; the i-th route corresponds to the i-th
       vehicle in the model.
       
      repeated .google.cloud.optimization.v1.ShipmentRoute routes = 1;
    • getRequestLabel

      public String getRequestLabel()
       Copy of the
       [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
       if a label was specified in the request.
       
      string request_label = 3;
      Specified by:
      getRequestLabel in interface OptimizeToursResponseOrBuilder
      Returns:
      The requestLabel.
    • getRequestLabelBytes

      public com.google.protobuf.ByteString getRequestLabelBytes()
       Copy of the
       [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
       if a label was specified in the request.
       
      string request_label = 3;
      Specified by:
      getRequestLabelBytes in interface OptimizeToursResponseOrBuilder
      Returns:
      The bytes for requestLabel.
    • setRequestLabel

      public OptimizeToursResponse.Builder setRequestLabel(String value)
       Copy of the
       [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
       if a label was specified in the request.
       
      string request_label = 3;
      Parameters:
      value - The requestLabel to set.
      Returns:
      This builder for chaining.
    • clearRequestLabel

      public OptimizeToursResponse.Builder clearRequestLabel()
       Copy of the
       [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
       if a label was specified in the request.
       
      string request_label = 3;
      Returns:
      This builder for chaining.
    • setRequestLabelBytes

      public OptimizeToursResponse.Builder setRequestLabelBytes(com.google.protobuf.ByteString value)
       Copy of the
       [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label],
       if a label was specified in the request.
       
      string request_label = 3;
      Parameters:
      value - The bytes for requestLabel to set.
      Returns:
      This builder for chaining.
    • getSkippedShipmentsList

      public List<SkippedShipment> getSkippedShipmentsList()
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
      Specified by:
      getSkippedShipmentsList in interface OptimizeToursResponseOrBuilder
    • getSkippedShipmentsCount

      public int getSkippedShipmentsCount()
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
      Specified by:
      getSkippedShipmentsCount in interface OptimizeToursResponseOrBuilder
    • getSkippedShipments

      public SkippedShipment getSkippedShipments(int index)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
      Specified by:
      getSkippedShipments in interface OptimizeToursResponseOrBuilder
    • setSkippedShipments

      public OptimizeToursResponse.Builder setSkippedShipments(int index, SkippedShipment value)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • setSkippedShipments

      public OptimizeToursResponse.Builder setSkippedShipments(int index, SkippedShipment.Builder builderForValue)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • addSkippedShipments

      public OptimizeToursResponse.Builder addSkippedShipments(SkippedShipment value)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • addSkippedShipments

      public OptimizeToursResponse.Builder addSkippedShipments(int index, SkippedShipment value)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • addSkippedShipments

      public OptimizeToursResponse.Builder addSkippedShipments(SkippedShipment.Builder builderForValue)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • addSkippedShipments

      public OptimizeToursResponse.Builder addSkippedShipments(int index, SkippedShipment.Builder builderForValue)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • addAllSkippedShipments

      public OptimizeToursResponse.Builder addAllSkippedShipments(Iterable<? extends SkippedShipment> values)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • clearSkippedShipments

      public OptimizeToursResponse.Builder clearSkippedShipments()
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • removeSkippedShipments

      public OptimizeToursResponse.Builder removeSkippedShipments(int index)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • getSkippedShipmentsBuilder

      public SkippedShipment.Builder getSkippedShipmentsBuilder(int index)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • getSkippedShipmentsOrBuilder

      public SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
      Specified by:
      getSkippedShipmentsOrBuilder in interface OptimizeToursResponseOrBuilder
    • getSkippedShipmentsOrBuilderList

      public List<? extends SkippedShipmentOrBuilder> getSkippedShipmentsOrBuilderList()
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
      Specified by:
      getSkippedShipmentsOrBuilderList in interface OptimizeToursResponseOrBuilder
    • addSkippedShipmentsBuilder

      public SkippedShipment.Builder addSkippedShipmentsBuilder()
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • addSkippedShipmentsBuilder

      public SkippedShipment.Builder addSkippedShipmentsBuilder(int index)
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • getSkippedShipmentsBuilderList

      public List<SkippedShipment.Builder> getSkippedShipmentsBuilderList()
       The list of all shipments skipped.
       
      repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
    • getValidationErrorsList

      public List<OptimizeToursValidationError> getValidationErrorsList()
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
      Specified by:
      getValidationErrorsList in interface OptimizeToursResponseOrBuilder
    • getValidationErrorsCount

      public int getValidationErrorsCount()
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
      Specified by:
      getValidationErrorsCount in interface OptimizeToursResponseOrBuilder
    • getValidationErrors

      public OptimizeToursValidationError getValidationErrors(int index)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
      Specified by:
      getValidationErrors in interface OptimizeToursResponseOrBuilder
    • setValidationErrors

      public OptimizeToursResponse.Builder setValidationErrors(int index, OptimizeToursValidationError value)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • setValidationErrors

      public OptimizeToursResponse.Builder setValidationErrors(int index, OptimizeToursValidationError.Builder builderForValue)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • addValidationErrors

      public OptimizeToursResponse.Builder addValidationErrors(OptimizeToursValidationError value)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • addValidationErrors

      public OptimizeToursResponse.Builder addValidationErrors(int index, OptimizeToursValidationError value)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • addValidationErrors

      public OptimizeToursResponse.Builder addValidationErrors(OptimizeToursValidationError.Builder builderForValue)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • addValidationErrors

      public OptimizeToursResponse.Builder addValidationErrors(int index, OptimizeToursValidationError.Builder builderForValue)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • addAllValidationErrors

      public OptimizeToursResponse.Builder addAllValidationErrors(Iterable<? extends OptimizeToursValidationError> values)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • clearValidationErrors

      public OptimizeToursResponse.Builder clearValidationErrors()
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • removeValidationErrors

      public OptimizeToursResponse.Builder removeValidationErrors(int index)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • getValidationErrorsBuilder

      public OptimizeToursValidationError.Builder getValidationErrorsBuilder(int index)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • getValidationErrorsOrBuilder

      public OptimizeToursValidationErrorOrBuilder getValidationErrorsOrBuilder(int index)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
      Specified by:
      getValidationErrorsOrBuilder in interface OptimizeToursResponseOrBuilder
    • getValidationErrorsOrBuilderList

      public List<? extends OptimizeToursValidationErrorOrBuilder> getValidationErrorsOrBuilderList()
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
      Specified by:
      getValidationErrorsOrBuilderList in interface OptimizeToursResponseOrBuilder
    • addValidationErrorsBuilder

      public OptimizeToursValidationError.Builder addValidationErrorsBuilder()
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • addValidationErrorsBuilder

      public OptimizeToursValidationError.Builder addValidationErrorsBuilder(int index)
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • getValidationErrorsBuilderList

      public List<OptimizeToursValidationError.Builder> getValidationErrorsBuilderList()
       List of all the validation errors that we were able to detect
       independently. See the "MULTIPLE ERRORS" explanation for the
       [OptimizeToursValidationError][google.cloud.optimization.v1.OptimizeToursValidationError]
       message.
       
      repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
    • hasMetrics

      public boolean hasMetrics()
       Duration, distance and usage metrics for this solution.
       
      .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
      Specified by:
      hasMetrics in interface OptimizeToursResponseOrBuilder
      Returns:
      Whether the metrics field is set.
    • getMetrics

      public OptimizeToursResponse.Metrics getMetrics()
       Duration, distance and usage metrics for this solution.
       
      .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
      Specified by:
      getMetrics in interface OptimizeToursResponseOrBuilder
      Returns:
      The metrics.
    • setMetrics

       Duration, distance and usage metrics for this solution.
       
      .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
    • setMetrics

       Duration, distance and usage metrics for this solution.
       
      .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
    • mergeMetrics

       Duration, distance and usage metrics for this solution.
       
      .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
    • clearMetrics

      public OptimizeToursResponse.Builder clearMetrics()
       Duration, distance and usage metrics for this solution.
       
      .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
    • getMetricsBuilder

      public OptimizeToursResponse.Metrics.Builder getMetricsBuilder()
       Duration, distance and usage metrics for this solution.
       
      .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
    • getMetricsOrBuilder

      public OptimizeToursResponse.MetricsOrBuilder getMetricsOrBuilder()
       Duration, distance and usage metrics for this solution.
       
      .google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
      Specified by:
      getMetricsOrBuilder in interface OptimizeToursResponseOrBuilder
    • getTotalCost

      @Deprecated public double getTotalCost()
      Deprecated.
      google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=433
       Deprecated: Use
       [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
       instead. Total cost of the solution. This takes into account all costs:
       costs per per hour and travel hour, fixed vehicle costs, unperformed
       shipment penalty costs, global duration cost, etc.
       
      double total_cost = 2 [deprecated = true];
      Specified by:
      getTotalCost in interface OptimizeToursResponseOrBuilder
      Returns:
      The totalCost.
    • setTotalCost

      @Deprecated public OptimizeToursResponse.Builder setTotalCost(double value)
      Deprecated.
      google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=433
       Deprecated: Use
       [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
       instead. Total cost of the solution. This takes into account all costs:
       costs per per hour and travel hour, fixed vehicle costs, unperformed
       shipment penalty costs, global duration cost, etc.
       
      double total_cost = 2 [deprecated = true];
      Parameters:
      value - The totalCost to set.
      Returns:
      This builder for chaining.
    • clearTotalCost

      @Deprecated public OptimizeToursResponse.Builder clearTotalCost()
      Deprecated.
      google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=433
       Deprecated: Use
       [Metrics.total_cost][google.cloud.optimization.v1.OptimizeToursResponse.Metrics.total_cost]
       instead. Total cost of the solution. This takes into account all costs:
       costs per per hour and travel hour, fixed vehicle costs, unperformed
       shipment penalty costs, global duration cost, etc.
       
      double total_cost = 2 [deprecated = true];
      Returns:
      This builder for chaining.