publicfinalclass OptimizeToursResponseextendsGeneratedMessageV3implementsOptimizeToursResponseOrBuilder
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
METRICS_FIELD_NUMBER
publicstaticfinalintMETRICS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
REQUEST_LABEL_FIELD_NUMBER
publicstaticfinalintREQUEST_LABEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
ROUTES_FIELD_NUMBER
publicstaticfinalintROUTES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
SKIPPED_SHIPMENTS_FIELD_NUMBER
publicstaticfinalintSKIPPED_SHIPMENTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TOTAL_COST_FIELD_NUMBER
publicstaticfinalintTOTAL_COST_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VALIDATION_ERRORS_FIELD_NUMBER
publicstaticfinalintVALIDATION_ERRORS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticOptimizeToursResponsegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticOptimizeToursResponse.BuildernewBuilder()
newBuilder(OptimizeToursResponse prototype)
publicstaticOptimizeToursResponse.BuildernewBuilder(OptimizeToursResponseprototype)
publicstaticOptimizeToursResponseparseDelimitedFrom(InputStreaminput)
publicstaticOptimizeToursResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticOptimizeToursResponseparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticOptimizeToursResponseparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticOptimizeToursResponseparseFrom(CodedInputStreaminput)
publicstaticOptimizeToursResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticOptimizeToursResponseparseFrom(InputStreaminput)
publicstaticOptimizeToursResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticOptimizeToursResponseparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticOptimizeToursResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<OptimizeToursResponse>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
publicOptimizeToursResponsegetDefaultInstanceForType()
getMetrics()
publicOptimizeToursResponse.MetricsgetMetrics()
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
getMetricsOrBuilder()
publicOptimizeToursResponse.MetricsOrBuildergetMetricsOrBuilder()
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
getParserForType()
publicParser<OptimizeToursResponse>getParserForType()
Overrides
getRequestLabel()
publicStringgetRequestLabel()
Copy of the
OptimizeToursRequest.label,
if a label was specified in the request.
string request_label = 3;
| Returns |
| Type |
Description |
String |
The requestLabel.
|
getRequestLabelBytes()
publicByteStringgetRequestLabelBytes()
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)
publicShipmentRoutegetRoutes(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
|
getRoutesCount()
publicintgetRoutesCount()
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()
publicList<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;
getRoutesOrBuilder(int index)
publicShipmentRouteOrBuildergetRoutesOrBuilder(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
|
getRoutesOrBuilderList()
publicList<?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> |
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getSkippedShipments(int index)
publicSkippedShipmentgetSkippedShipments(intindex)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
| Parameter |
| Name |
Description |
index |
int
|
getSkippedShipmentsCount()
publicintgetSkippedShipmentsCount()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
| Returns |
| Type |
Description |
int |
getSkippedShipmentsList()
publicList<SkippedShipment>getSkippedShipmentsList()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
getSkippedShipmentsOrBuilder(int index)
publicSkippedShipmentOrBuildergetSkippedShipmentsOrBuilder(intindex)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
| Parameter |
| Name |
Description |
index |
int
|
getSkippedShipmentsOrBuilderList()
publicList<?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)
publicdoublegetTotalCost()
Deprecated. google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See
google/cloud/optimization/v1/fleet_routing.proto;l=425
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)
publicOptimizeToursValidationErrorgetValidationErrors(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
|
getValidationErrorsCount()
publicintgetValidationErrorsCount()
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()
publicList<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;
getValidationErrorsOrBuilder(int index)
publicOptimizeToursValidationErrorOrBuildergetValidationErrorsOrBuilder(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
|
getValidationErrorsOrBuilderList()
publicList<?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()
publicbooleanhasMetrics()
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicOptimizeToursResponse.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedOptimizeToursResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicOptimizeToursResponse.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides