- 1.51.0 (latest)
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.14
- 0.1.2
public static final class OptimizeToursResponse.Builder extends GeneratedMessageV3.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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OptimizeToursResponse.BuilderImplements
OptimizeToursResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllRoutes(Iterable<? extends ShipmentRoute> values)
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;
Name | Description |
values | Iterable<? extends com.google.cloud.optimization.v1.ShipmentRoute> |
Type | Description |
OptimizeToursResponse.Builder |
addAllSkippedShipments(Iterable<? extends SkippedShipment> values)
public OptimizeToursResponse.Builder addAllSkippedShipments(Iterable<? extends SkippedShipment> values)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
values | Iterable<? extends com.google.cloud.optimization.v1.SkippedShipment> |
Type | Description |
OptimizeToursResponse.Builder |
addAllValidationErrors(Iterable<? extends OptimizeToursValidationError> values)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
values | Iterable<? extends com.google.cloud.optimization.v1.OptimizeToursValidationError> |
Type | Description |
OptimizeToursResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OptimizeToursResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OptimizeToursResponse.Builder |
addRoutes(ShipmentRoute value)
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;
Name | Description |
value | ShipmentRoute |
Type | Description |
OptimizeToursResponse.Builder |
addRoutes(ShipmentRoute.Builder builderForValue)
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;
Name | Description |
builderForValue | ShipmentRoute.Builder |
Type | Description |
OptimizeToursResponse.Builder |
addRoutes(int index, ShipmentRoute value)
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;
Name | Description |
index | int |
value | ShipmentRoute |
Type | Description |
OptimizeToursResponse.Builder |
addRoutes(int index, ShipmentRoute.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | ShipmentRoute.Builder |
Type | Description |
OptimizeToursResponse.Builder |
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;
Type | Description |
ShipmentRoute.Builder |
addRoutesBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
ShipmentRoute.Builder |
addSkippedShipments(SkippedShipment value)
public OptimizeToursResponse.Builder addSkippedShipments(SkippedShipment value)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
value | SkippedShipment |
Type | Description |
OptimizeToursResponse.Builder |
addSkippedShipments(SkippedShipment.Builder builderForValue)
public OptimizeToursResponse.Builder addSkippedShipments(SkippedShipment.Builder builderForValue)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
builderForValue | SkippedShipment.Builder |
Type | Description |
OptimizeToursResponse.Builder |
addSkippedShipments(int index, SkippedShipment value)
public OptimizeToursResponse.Builder addSkippedShipments(int index, SkippedShipment value)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
value | SkippedShipment |
Type | Description |
OptimizeToursResponse.Builder |
addSkippedShipments(int index, SkippedShipment.Builder builderForValue)
public OptimizeToursResponse.Builder addSkippedShipments(int index, SkippedShipment.Builder builderForValue)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
builderForValue | SkippedShipment.Builder |
Type | Description |
OptimizeToursResponse.Builder |
addSkippedShipmentsBuilder()
public SkippedShipment.Builder addSkippedShipmentsBuilder()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Type | Description |
SkippedShipment.Builder |
addSkippedShipmentsBuilder(int index)
public SkippedShipment.Builder addSkippedShipmentsBuilder(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
Type | Description |
SkippedShipment.Builder |
addValidationErrors(OptimizeToursValidationError value)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
value | OptimizeToursValidationError |
Type | Description |
OptimizeToursResponse.Builder |
addValidationErrors(OptimizeToursValidationError.Builder builderForValue)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
builderForValue | OptimizeToursValidationError.Builder |
Type | Description |
OptimizeToursResponse.Builder |
addValidationErrors(int index, OptimizeToursValidationError value)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
index | int |
value | OptimizeToursValidationError |
Type | Description |
OptimizeToursResponse.Builder |
addValidationErrors(int index, OptimizeToursValidationError.Builder builderForValue)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
index | int |
builderForValue | OptimizeToursValidationError.Builder |
Type | Description |
OptimizeToursResponse.Builder |
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Type | Description |
OptimizeToursValidationError.Builder |
addValidationErrorsBuilder(int index)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
index | int |
Type | Description |
OptimizeToursValidationError.Builder |
build()
public OptimizeToursResponse build()
Type | Description |
OptimizeToursResponse |
buildPartial()
public OptimizeToursResponse buildPartial()
Type | Description |
OptimizeToursResponse |
clear()
public OptimizeToursResponse.Builder clear()
Type | Description |
OptimizeToursResponse.Builder |
clearField(Descriptors.FieldDescriptor field)
public OptimizeToursResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
OptimizeToursResponse.Builder |
clearMetrics()
public OptimizeToursResponse.Builder clearMetrics()
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
Type | Description |
OptimizeToursResponse.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public OptimizeToursResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
OptimizeToursResponse.Builder |
clearRequestLabel()
public OptimizeToursResponse.Builder clearRequestLabel()
Copy of the OptimizeToursRequest.label, if a label was specified in the request.
string request_label = 3;
Type | Description |
OptimizeToursResponse.Builder | This builder for chaining. |
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;
Type | Description |
OptimizeToursResponse.Builder |
clearSkippedShipments()
public OptimizeToursResponse.Builder clearSkippedShipments()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Type | Description |
OptimizeToursResponse.Builder |
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=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];
Type | Description |
OptimizeToursResponse.Builder | This builder for chaining. |
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Type | Description |
OptimizeToursResponse.Builder |
clone()
public OptimizeToursResponse.Builder clone()
Type | Description |
OptimizeToursResponse.Builder |
getDefaultInstanceForType()
public OptimizeToursResponse getDefaultInstanceForType()
Type | Description |
OptimizeToursResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMetrics()
public OptimizeToursResponse.Metrics getMetrics()
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
Type | Description |
OptimizeToursResponse.Metrics | The metrics. |
getMetricsBuilder()
public OptimizeToursResponse.Metrics.Builder getMetricsBuilder()
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
Type | Description |
OptimizeToursResponse.Metrics.Builder |
getMetricsOrBuilder()
public OptimizeToursResponse.MetricsOrBuilder getMetricsOrBuilder()
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
Type | Description |
OptimizeToursResponse.MetricsOrBuilder |
getRequestLabel()
public String getRequestLabel()
Copy of the OptimizeToursRequest.label, if a label was specified in the request.
string request_label = 3;
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;
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;
Name | Description |
index | int |
Type | Description |
ShipmentRoute |
getRoutesBuilder(int index)
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;
Name | Description |
index | int |
Type | Description |
ShipmentRoute.Builder |
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;
Type | Description |
List<Builder> |
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;
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;
Type | Description |
List<ShipmentRoute> |
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;
Name | Description |
index | int |
Type | Description |
ShipmentRouteOrBuilder |
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;
Type | Description |
List<? extends com.google.cloud.optimization.v1.ShipmentRouteOrBuilder> |
getSkippedShipments(int index)
public SkippedShipment getSkippedShipments(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
Type | Description |
SkippedShipment |
getSkippedShipmentsBuilder(int index)
public SkippedShipment.Builder getSkippedShipmentsBuilder(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
Type | Description |
SkippedShipment.Builder |
getSkippedShipmentsBuilderList()
public List<SkippedShipment.Builder> getSkippedShipmentsBuilderList()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Type | Description |
List<Builder> |
getSkippedShipmentsCount()
public int getSkippedShipmentsCount()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Type | Description |
int |
getSkippedShipmentsList()
public List<SkippedShipment> getSkippedShipmentsList()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Type | Description |
List<SkippedShipment> |
getSkippedShipmentsOrBuilder(int index)
public SkippedShipmentOrBuilder getSkippedShipmentsOrBuilder(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
Type | Description |
SkippedShipmentOrBuilder |
getSkippedShipmentsOrBuilderList()
public List<? extends SkippedShipmentOrBuilder> getSkippedShipmentsOrBuilderList()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
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];
Type | Description |
double | The totalCost. |
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;
Name | Description |
index | int |
Type | Description |
OptimizeToursValidationError |
getValidationErrorsBuilder(int index)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
index | int |
Type | Description |
OptimizeToursValidationError.Builder |
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Type | Description |
List<Builder> |
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;
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;
Type | Description |
List<OptimizeToursValidationError> |
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;
Name | Description |
index | int |
Type | Description |
OptimizeToursValidationErrorOrBuilder |
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;
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;
Type | Description |
boolean | Whether the metrics field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(OptimizeToursResponse other)
public OptimizeToursResponse.Builder mergeFrom(OptimizeToursResponse other)
Name | Description |
other | OptimizeToursResponse |
Type | Description |
OptimizeToursResponse.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OptimizeToursResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OptimizeToursResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public OptimizeToursResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
OptimizeToursResponse.Builder |
mergeMetrics(OptimizeToursResponse.Metrics value)
public OptimizeToursResponse.Builder mergeMetrics(OptimizeToursResponse.Metrics value)
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
Name | Description |
value | OptimizeToursResponse.Metrics |
Type | Description |
OptimizeToursResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OptimizeToursResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OptimizeToursResponse.Builder |
removeRoutes(int index)
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;
Name | Description |
index | int |
Type | Description |
OptimizeToursResponse.Builder |
removeSkippedShipments(int index)
public OptimizeToursResponse.Builder removeSkippedShipments(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
Type | Description |
OptimizeToursResponse.Builder |
removeValidationErrors(int index)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
index | int |
Type | Description |
OptimizeToursResponse.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public OptimizeToursResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OptimizeToursResponse.Builder |
setMetrics(OptimizeToursResponse.Metrics value)
public OptimizeToursResponse.Builder setMetrics(OptimizeToursResponse.Metrics value)
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
Name | Description |
value | OptimizeToursResponse.Metrics |
Type | Description |
OptimizeToursResponse.Builder |
setMetrics(OptimizeToursResponse.Metrics.Builder builderForValue)
public OptimizeToursResponse.Builder setMetrics(OptimizeToursResponse.Metrics.Builder builderForValue)
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
Name | Description |
builderForValue | OptimizeToursResponse.Metrics.Builder |
Type | Description |
OptimizeToursResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OptimizeToursResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
OptimizeToursResponse.Builder |
setRequestLabel(String value)
public OptimizeToursResponse.Builder setRequestLabel(String value)
Copy of the OptimizeToursRequest.label, if a label was specified in the request.
string request_label = 3;
Name | Description |
value | String The requestLabel to set. |
Type | Description |
OptimizeToursResponse.Builder | This builder for chaining. |
setRequestLabelBytes(ByteString value)
public OptimizeToursResponse.Builder setRequestLabelBytes(ByteString value)
Copy of the OptimizeToursRequest.label, if a label was specified in the request.
string request_label = 3;
Name | Description |
value | ByteString The bytes for requestLabel to set. |
Type | Description |
OptimizeToursResponse.Builder | This builder for chaining. |
setRoutes(int index, ShipmentRoute value)
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;
Name | Description |
index | int |
value | ShipmentRoute |
Type | Description |
OptimizeToursResponse.Builder |
setRoutes(int index, ShipmentRoute.Builder builderForValue)
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;
Name | Description |
index | int |
builderForValue | ShipmentRoute.Builder |
Type | Description |
OptimizeToursResponse.Builder |
setSkippedShipments(int index, SkippedShipment value)
public OptimizeToursResponse.Builder setSkippedShipments(int index, SkippedShipment value)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
value | SkippedShipment |
Type | Description |
OptimizeToursResponse.Builder |
setSkippedShipments(int index, SkippedShipment.Builder builderForValue)
public OptimizeToursResponse.Builder setSkippedShipments(int index, SkippedShipment.Builder builderForValue)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
Name | Description |
index | int |
builderForValue | SkippedShipment.Builder |
Type | Description |
OptimizeToursResponse.Builder |
setTotalCost(double value) (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=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];
Name | Description |
value | double The totalCost to set. |
Type | Description |
OptimizeToursResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final OptimizeToursResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OptimizeToursResponse.Builder |
setValidationErrors(int index, OptimizeToursValidationError value)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
index | int |
value | OptimizeToursValidationError |
Type | Description |
OptimizeToursResponse.Builder |
setValidationErrors(int index, OptimizeToursValidationError.Builder builderForValue)
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 message.
repeated .google.cloud.optimization.v1.OptimizeToursValidationError validation_errors = 5;
Name | Description |
index | int |
builderForValue | OptimizeToursValidationError.Builder |
Type | Description |
OptimizeToursResponse.Builder |