public final class OptimizeToursResponse extends GeneratedMessageV3 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REQUEST_LABEL_FIELD_NUMBER
public static final int REQUEST_LABEL_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ROUTES_FIELD_NUMBER
public static final int ROUTES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SKIPPED_SHIPMENTS_FIELD_NUMBER
public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TOTAL_COST_FIELD_NUMBER
public static final int TOTAL_COST_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
VALIDATION_ERRORS_FIELD_NUMBER
public static final int VALIDATION_ERRORS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static OptimizeToursResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static OptimizeToursResponse.Builder newBuilder()
newBuilder(OptimizeToursResponse prototype)
public static OptimizeToursResponse.Builder newBuilder(OptimizeToursResponse prototype)
public static OptimizeToursResponse parseDelimitedFrom(InputStream input)
public static OptimizeToursResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static OptimizeToursResponse parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OptimizeToursResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static OptimizeToursResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OptimizeToursResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OptimizeToursResponse parseFrom(CodedInputStream input)
public static OptimizeToursResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OptimizeToursResponse parseFrom(InputStream input)
public static OptimizeToursResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static OptimizeToursResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OptimizeToursResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<OptimizeToursResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public OptimizeToursResponse getDefaultInstanceForType()
getMetrics()
public OptimizeToursResponse.Metrics getMetrics()
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;
getParserForType()
public Parser<OptimizeToursResponse> getParserForType()
Overrides
getRequestLabel()
public String getRequestLabel()
Copy of the
OptimizeToursRequest.label,
if a label was specified in the request.
string request_label = 3;
Returns |
---|
Type | Description |
String | The requestLabel.
|
getRequestLabelBytes()
public ByteString getRequestLabelBytes()
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)
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;
Parameter |
---|
Name | Description |
index | int
|
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;
Returns |
---|
Type | Description |
int | |
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;
getRoutesOrBuilder(int index)
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;
Parameter |
---|
Name | Description |
index | int
|
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;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getSkippedShipments(int index)
public SkippedShipment getSkippedShipments(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Parameter |
---|
Name | Description |
index | int
|
getSkippedShipmentsCount()
public int getSkippedShipmentsCount()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Returns |
---|
Type | Description |
int | |
getSkippedShipmentsList()
public List<SkippedShipment> getSkippedShipmentsList()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
getSkippedShipmentsOrBuilder(int index)
public SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Parameter |
---|
Name | Description |
index | int
|
getSkippedShipmentsOrBuilderList()
public List<? extends SkippedShipmentOrBuilder> 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)
public double getTotalCost()
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.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
getValidationErrors(int index)
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
message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Parameter |
---|
Name | Description |
index | int
|
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
message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Returns |
---|
Type | Description |
int | |
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
message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
getValidationErrorsOrBuilder(int index)
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
message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Parameter |
---|
Name | Description |
index | int
|
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
message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.optimization.v1.OptimizeToursValidationErrorOrBuilder> | |
hasMetrics()
public boolean hasMetrics()
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()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public OptimizeToursResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OptimizeToursResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public OptimizeToursResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides