Interface OptimizeToursResponseOrBuilder (1.46.0)

publicinterface OptimizeToursResponseOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getMetrics()

publicabstractOptimizeToursResponse.MetricsgetMetrics()

Duration, distance and usage metrics for this solution.

.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;

Returns
Type Description
OptimizeToursResponse.Metrics

The metrics.

getMetricsOrBuilder()

publicabstractOptimizeToursResponse.MetricsOrBuildergetMetricsOrBuilder()

Duration, distance and usage metrics for this solution.

.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;

Returns
Type Description
OptimizeToursResponse.MetricsOrBuilder

getRequestLabel()

publicabstractStringgetRequestLabel()

Copy of the OptimizeToursRequest.label, if a label was specified in the request.

string request_label = 3;

Returns
Type Description
String

The requestLabel.

getRequestLabelBytes()

publicabstractByteStringgetRequestLabelBytes()

Copy of the OptimizeToursRequest.label, if a label was specified in the request.

string request_label = 3;

Returns
Type Description
ByteString

The bytes for requestLabel.

getRoutes(int index)

publicabstractShipmentRoutegetRoutes(intindex)

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;

Parameter
Name Description
index int
Returns
Type Description
ShipmentRoute

getRoutesCount()

publicabstractintgetRoutesCount()

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;

Returns
Type Description
int

getRoutesList()

publicabstractList<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;

Returns
Type Description
List<ShipmentRoute>

getRoutesOrBuilder(int index)

publicabstractShipmentRouteOrBuildergetRoutesOrBuilder(intindex)

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;

Parameter
Name Description
index int
Returns
Type Description
ShipmentRouteOrBuilder

getRoutesOrBuilderList()

publicabstractList<?extendsShipmentRouteOrBuilder>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;

Returns
Type Description
List<? extends com.google.cloud.optimization.v1.ShipmentRouteOrBuilder>

getSkippedShipments(int index)

publicabstractSkippedShipmentgetSkippedShipments(intindex)

The list of all shipments skipped.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;

Parameter
Name Description
index int
Returns
Type Description
SkippedShipment

getSkippedShipmentsCount()

publicabstractintgetSkippedShipmentsCount()

The list of all shipments skipped.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;

Returns
Type Description
int

getSkippedShipmentsList()

publicabstractList<SkippedShipment>getSkippedShipmentsList()

The list of all shipments skipped.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;

Returns
Type Description
List<SkippedShipment>

getSkippedShipmentsOrBuilder(int index)

publicabstractSkippedShipmentOrBuildergetSkippedShipmentsOrBuilder(intindex)

The list of all shipments skipped.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;

Parameter
Name Description
index int
Returns
Type Description
SkippedShipmentOrBuilder

getSkippedShipmentsOrBuilderList()

publicabstractList<?extendsSkippedShipmentOrBuilder>getSkippedShipmentsOrBuilderList()

The list of all shipments skipped.

repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;

Returns
Type Description
List<? extends com.google.cloud.optimization.v1.SkippedShipmentOrBuilder>

getTotalCost() (deprecated)

publicabstractdoublegetTotalCost()

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 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
Type Description
double

The totalCost.

getValidationErrors(int index)

publicabstractOptimizeToursValidationErrorgetValidationErrors(intindex)

List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.

repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;

Parameter
Name Description
index int
Returns
Type Description
OptimizeToursValidationError

getValidationErrorsCount()

publicabstractintgetValidationErrorsCount()

List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.

repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;

Returns
Type Description
int

getValidationErrorsList()

publicabstractList<OptimizeToursValidationError>getValidationErrorsList()

List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.

repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;

Returns
Type Description
List<OptimizeToursValidationError>

getValidationErrorsOrBuilder(int index)

publicabstractOptimizeToursValidationErrorOrBuildergetValidationErrorsOrBuilder(intindex)

List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.

repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;

Parameter
Name Description
index int
Returns
Type Description
OptimizeToursValidationErrorOrBuilder

getValidationErrorsOrBuilderList()

publicabstractList<?extendsOptimizeToursValidationErrorOrBuilder>getValidationErrorsOrBuilderList()

List of all the validation errors that we were able to detect independently. See the "MULTIPLE ERRORS" explanation for the OptimizeToursValidationError message.

repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;

Returns
Type Description
List<? extends com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder>

hasMetrics()

publicabstractbooleanhasMetrics()

Duration, distance and usage metrics for this solution.

.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;

Returns
Type Description
boolean

Whether the metrics field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.