Package com.google.cloud.optimization.v1
Class OptimizeToursResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.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 typegoogle.cloud.optimization.v1.OptimizeToursResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OptimizeToursResponse.BuilderaddAllRoutes(Iterable<? extends ShipmentRoute> values)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuilderaddAllSkippedShipments(Iterable<? extends SkippedShipment> values)The list of all shipments skipped.OptimizeToursResponse.BuilderaddAllValidationErrors(Iterable<? extends OptimizeToursValidationError> values)List of all the validation errors that we were able to detect independently.OptimizeToursResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OptimizeToursResponse.BuilderaddRoutes(int index, ShipmentRoute value)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuilderaddRoutes(int index, ShipmentRoute.Builder builderForValue)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuilderaddRoutes(ShipmentRoute value)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuilderaddRoutes(ShipmentRoute.Builder builderForValue)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRoute.BuilderaddRoutesBuilder()Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRoute.BuilderaddRoutesBuilder(int index)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuilderaddSkippedShipments(int index, SkippedShipment value)The list of all shipments skipped.OptimizeToursResponse.BuilderaddSkippedShipments(int index, SkippedShipment.Builder builderForValue)The list of all shipments skipped.OptimizeToursResponse.BuilderaddSkippedShipments(SkippedShipment value)The list of all shipments skipped.OptimizeToursResponse.BuilderaddSkippedShipments(SkippedShipment.Builder builderForValue)The list of all shipments skipped.SkippedShipment.BuilderaddSkippedShipmentsBuilder()The list of all shipments skipped.SkippedShipment.BuilderaddSkippedShipmentsBuilder(int index)The list of all shipments skipped.OptimizeToursResponse.BuilderaddValidationErrors(int index, OptimizeToursValidationError value)List of all the validation errors that we were able to detect independently.OptimizeToursResponse.BuilderaddValidationErrors(int index, OptimizeToursValidationError.Builder builderForValue)List of all the validation errors that we were able to detect independently.OptimizeToursResponse.BuilderaddValidationErrors(OptimizeToursValidationError value)List of all the validation errors that we were able to detect independently.OptimizeToursResponse.BuilderaddValidationErrors(OptimizeToursValidationError.Builder builderForValue)List of all the validation errors that we were able to detect independently.OptimizeToursValidationError.BuilderaddValidationErrorsBuilder()List of all the validation errors that we were able to detect independently.OptimizeToursValidationError.BuilderaddValidationErrorsBuilder(int index)List of all the validation errors that we were able to detect independently.OptimizeToursResponsebuild()OptimizeToursResponsebuildPartial()OptimizeToursResponse.Builderclear()OptimizeToursResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OptimizeToursResponse.BuilderclearMetrics()Duration, distance and usage metrics for this solution.OptimizeToursResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OptimizeToursResponse.BuilderclearRequestLabel()Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.OptimizeToursResponse.BuilderclearRoutes()Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuilderclearSkippedShipments()The list of all shipments skipped.OptimizeToursResponse.BuilderclearTotalCost()Deprecated.google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated.OptimizeToursResponse.BuilderclearValidationErrors()List of all the validation errors that we were able to detect independently.OptimizeToursResponse.Builderclone()OptimizeToursResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()OptimizeToursResponse.MetricsgetMetrics()Duration, distance and usage metrics for this solution.OptimizeToursResponse.Metrics.BuildergetMetricsBuilder()Duration, distance and usage metrics for this solution.OptimizeToursResponse.MetricsOrBuildergetMetricsOrBuilder()Duration, distance and usage metrics for this solution.StringgetRequestLabel()Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.com.google.protobuf.ByteStringgetRequestLabelBytes()Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.ShipmentRoutegetRoutes(int index)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRoute.BuildergetRoutesBuilder(int index)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.List<ShipmentRoute.Builder>getRoutesBuilderList()Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.intgetRoutesCount()Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.List<ShipmentRoute>getRoutesList()Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRouteOrBuildergetRoutesOrBuilder(int index)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.List<? extends ShipmentRouteOrBuilder>getRoutesOrBuilderList()Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.SkippedShipmentgetSkippedShipments(int index)The list of all shipments skipped.SkippedShipment.BuildergetSkippedShipmentsBuilder(int index)The list of all shipments skipped.List<SkippedShipment.Builder>getSkippedShipmentsBuilderList()The list of all shipments skipped.intgetSkippedShipmentsCount()The list of all shipments skipped.List<SkippedShipment>getSkippedShipmentsList()The list of all shipments skipped.SkippedShipmentOrBuildergetSkippedShipmentsOrBuilder(int index)The list of all shipments skipped.List<? extends SkippedShipmentOrBuilder>getSkippedShipmentsOrBuilderList()The list of all shipments skipped.doublegetTotalCost()Deprecated.google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated.OptimizeToursValidationErrorgetValidationErrors(int index)List of all the validation errors that we were able to detect independently.OptimizeToursValidationError.BuildergetValidationErrorsBuilder(int index)List of all the validation errors that we were able to detect independently.List<OptimizeToursValidationError.Builder>getValidationErrorsBuilderList()List of all the validation errors that we were able to detect independently.intgetValidationErrorsCount()List of all the validation errors that we were able to detect independently.List<OptimizeToursValidationError>getValidationErrorsList()List of all the validation errors that we were able to detect independently.OptimizeToursValidationErrorOrBuildergetValidationErrorsOrBuilder(int index)List of all the validation errors that we were able to detect independently.List<? extends OptimizeToursValidationErrorOrBuilder>getValidationErrorsOrBuilderList()List of all the validation errors that we were able to detect independently.booleanhasMetrics()Duration, distance and usage metrics for this solution.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OptimizeToursResponse.BuildermergeFrom(OptimizeToursResponse other)OptimizeToursResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OptimizeToursResponse.BuildermergeFrom(com.google.protobuf.Message other)OptimizeToursResponse.BuildermergeMetrics(OptimizeToursResponse.Metrics value)Duration, distance and usage metrics for this solution.OptimizeToursResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OptimizeToursResponse.BuilderremoveRoutes(int index)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuilderremoveSkippedShipments(int index)The list of all shipments skipped.OptimizeToursResponse.BuilderremoveValidationErrors(int index)List of all the validation errors that we were able to detect independently.OptimizeToursResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OptimizeToursResponse.BuildersetMetrics(OptimizeToursResponse.Metrics value)Duration, distance and usage metrics for this solution.OptimizeToursResponse.BuildersetMetrics(OptimizeToursResponse.Metrics.Builder builderForValue)Duration, distance and usage metrics for this solution.OptimizeToursResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OptimizeToursResponse.BuildersetRequestLabel(String value)Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.OptimizeToursResponse.BuildersetRequestLabelBytes(com.google.protobuf.ByteString value)Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.OptimizeToursResponse.BuildersetRoutes(int index, ShipmentRoute value)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuildersetRoutes(int index, ShipmentRoute.Builder builderForValue)Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.BuildersetSkippedShipments(int index, SkippedShipment value)The list of all shipments skipped.OptimizeToursResponse.BuildersetSkippedShipments(int index, SkippedShipment.Builder builderForValue)The list of all shipments skipped.OptimizeToursResponse.BuildersetTotalCost(double value)Deprecated.google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated.OptimizeToursResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OptimizeToursResponse.BuildersetValidationErrors(int index, OptimizeToursValidationError value)List of all the validation errors that we were able to detect independently.OptimizeToursResponse.BuildersetValidationErrors(int index, OptimizeToursValidationError.Builder builderForValue)List of all the validation errors that we were able to detect independently.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
clear
public OptimizeToursResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
getDefaultInstanceForType
public OptimizeToursResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OptimizeToursResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OptimizeToursResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OptimizeToursResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
setField
public OptimizeToursResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
clearField
public OptimizeToursResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
clearOneof
public OptimizeToursResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
setRepeatedField
public OptimizeToursResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
addRepeatedField
public OptimizeToursResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
mergeFrom
public OptimizeToursResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OptimizeToursResponse.Builder>
-
mergeFrom
public OptimizeToursResponse.Builder mergeFrom(OptimizeToursResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
mergeFrom
public OptimizeToursResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getRoutesListin interfaceOptimizeToursResponseOrBuilder
-
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:
getRoutesCountin interfaceOptimizeToursResponseOrBuilder
-
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:
getRoutesin interfaceOptimizeToursResponseOrBuilder
-
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:
getRoutesOrBuilderin interfaceOptimizeToursResponseOrBuilder
-
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:
getRoutesOrBuilderListin interfaceOptimizeToursResponseOrBuilder
-
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:
getRequestLabelin interfaceOptimizeToursResponseOrBuilder- 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:
getRequestLabelBytesin interfaceOptimizeToursResponseOrBuilder- 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:
getSkippedShipmentsListin interfaceOptimizeToursResponseOrBuilder
-
getSkippedShipmentsCount
public int getSkippedShipmentsCount()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;- Specified by:
getSkippedShipmentsCountin interfaceOptimizeToursResponseOrBuilder
-
getSkippedShipments
public SkippedShipment getSkippedShipments(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;- Specified by:
getSkippedShipmentsin interfaceOptimizeToursResponseOrBuilder
-
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:
getSkippedShipmentsOrBuilderin interfaceOptimizeToursResponseOrBuilder
-
getSkippedShipmentsOrBuilderList
public List<? extends SkippedShipmentOrBuilder> getSkippedShipmentsOrBuilderList()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;- Specified by:
getSkippedShipmentsOrBuilderListin interfaceOptimizeToursResponseOrBuilder
-
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:
getValidationErrorsListin interfaceOptimizeToursResponseOrBuilder
-
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:
getValidationErrorsCountin interfaceOptimizeToursResponseOrBuilder
-
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:
getValidationErrorsin interfaceOptimizeToursResponseOrBuilder
-
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:
getValidationErrorsOrBuilderin interfaceOptimizeToursResponseOrBuilder
-
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:
getValidationErrorsOrBuilderListin interfaceOptimizeToursResponseOrBuilder
-
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:
hasMetricsin interfaceOptimizeToursResponseOrBuilder- 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:
getMetricsin interfaceOptimizeToursResponseOrBuilder- Returns:
- The metrics.
-
setMetrics
public OptimizeToursResponse.Builder setMetrics(OptimizeToursResponse.Metrics value)
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
-
setMetrics
public OptimizeToursResponse.Builder setMetrics(OptimizeToursResponse.Metrics.Builder builderForValue)
Duration, distance and usage metrics for this solution.
.google.cloud.optimization.v1.OptimizeToursResponse.Metrics metrics = 6;
-
mergeMetrics
public OptimizeToursResponse.Builder mergeMetrics(OptimizeToursResponse.Metrics value)
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:
getMetricsOrBuilderin interfaceOptimizeToursResponseOrBuilder
-
getTotalCost
@Deprecated public double getTotalCost()
Deprecated.google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated. See google/cloud/optimization/v1/fleet_routing.proto;l=433Deprecated: 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:
getTotalCostin interfaceOptimizeToursResponseOrBuilder- 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=433Deprecated: 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=433Deprecated: 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.
-
setUnknownFields
public final OptimizeToursResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
mergeUnknownFields
public final OptimizeToursResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
-