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.Builder
addAllRoutes(Iterable<? extends ShipmentRoute> values)
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.Builder
addAllSkippedShipments(Iterable<? extends SkippedShipment> values)
The list of all shipments skipped.OptimizeToursResponse.Builder
addAllValidationErrors(Iterable<? extends OptimizeToursValidationError> values)
List of all the validation errors that we were able to detect independently.OptimizeToursResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
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.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.OptimizeToursResponse.Builder
addRoutes(ShipmentRoute value)
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.Builder
addRoutes(ShipmentRoute.Builder builderForValue)
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRoute.Builder
addRoutesBuilder()
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRoute.Builder
addRoutesBuilder(int index)
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.Builder
addSkippedShipments(int index, SkippedShipment value)
The list of all shipments skipped.OptimizeToursResponse.Builder
addSkippedShipments(int index, SkippedShipment.Builder builderForValue)
The list of all shipments skipped.OptimizeToursResponse.Builder
addSkippedShipments(SkippedShipment value)
The list of all shipments skipped.OptimizeToursResponse.Builder
addSkippedShipments(SkippedShipment.Builder builderForValue)
The list of all shipments skipped.SkippedShipment.Builder
addSkippedShipmentsBuilder()
The list of all shipments skipped.SkippedShipment.Builder
addSkippedShipmentsBuilder(int index)
The list of all shipments skipped.OptimizeToursResponse.Builder
addValidationErrors(int index, OptimizeToursValidationError value)
List of all the validation errors that we were able to detect independently.OptimizeToursResponse.Builder
addValidationErrors(int index, OptimizeToursValidationError.Builder builderForValue)
List of all the validation errors that we were able to detect independently.OptimizeToursResponse.Builder
addValidationErrors(OptimizeToursValidationError value)
List of all the validation errors that we were able to detect independently.OptimizeToursResponse.Builder
addValidationErrors(OptimizeToursValidationError.Builder builderForValue)
List of all the validation errors that we were able to detect independently.OptimizeToursValidationError.Builder
addValidationErrorsBuilder()
List of all the validation errors that we were able to detect independently.OptimizeToursValidationError.Builder
addValidationErrorsBuilder(int index)
List of all the validation errors that we were able to detect independently.OptimizeToursResponse
build()
OptimizeToursResponse
buildPartial()
OptimizeToursResponse.Builder
clear()
OptimizeToursResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
OptimizeToursResponse.Builder
clearMetrics()
Duration, distance and usage metrics for this solution.OptimizeToursResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
OptimizeToursResponse.Builder
clearRequestLabel()
Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.OptimizeToursResponse.Builder
clearRoutes()
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.Builder
clearSkippedShipments()
The list of all shipments skipped.OptimizeToursResponse.Builder
clearTotalCost()
Deprecated.google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated.OptimizeToursResponse.Builder
clearValidationErrors()
List of all the validation errors that we were able to detect independently.OptimizeToursResponse.Builder
clone()
OptimizeToursResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
OptimizeToursResponse.Metrics
getMetrics()
Duration, distance and usage metrics for this solution.OptimizeToursResponse.Metrics.Builder
getMetricsBuilder()
Duration, distance and usage metrics for this solution.OptimizeToursResponse.MetricsOrBuilder
getMetricsOrBuilder()
Duration, distance and usage metrics for this solution.String
getRequestLabel()
Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.com.google.protobuf.ByteString
getRequestLabelBytes()
Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.ShipmentRoute
getRoutes(int index)
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.ShipmentRoute.Builder
getRoutesBuilder(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.int
getRoutesCount()
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.ShipmentRouteOrBuilder
getRoutesOrBuilder(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.SkippedShipment
getSkippedShipments(int index)
The list of all shipments skipped.SkippedShipment.Builder
getSkippedShipmentsBuilder(int index)
The list of all shipments skipped.List<SkippedShipment.Builder>
getSkippedShipmentsBuilderList()
The list of all shipments skipped.int
getSkippedShipmentsCount()
The list of all shipments skipped.List<SkippedShipment>
getSkippedShipmentsList()
The list of all shipments skipped.SkippedShipmentOrBuilder
getSkippedShipmentsOrBuilder(int index)
The list of all shipments skipped.List<? extends SkippedShipmentOrBuilder>
getSkippedShipmentsOrBuilderList()
The list of all shipments skipped.double
getTotalCost()
Deprecated.google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated.OptimizeToursValidationError
getValidationErrors(int index)
List of all the validation errors that we were able to detect independently.OptimizeToursValidationError.Builder
getValidationErrorsBuilder(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.int
getValidationErrorsCount()
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.OptimizeToursValidationErrorOrBuilder
getValidationErrorsOrBuilder(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.boolean
hasMetrics()
Duration, distance and usage metrics for this solution.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
OptimizeToursResponse.Builder
mergeFrom(OptimizeToursResponse other)
OptimizeToursResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
OptimizeToursResponse.Builder
mergeFrom(com.google.protobuf.Message other)
OptimizeToursResponse.Builder
mergeMetrics(OptimizeToursResponse.Metrics value)
Duration, distance and usage metrics for this solution.OptimizeToursResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
OptimizeToursResponse.Builder
removeRoutes(int index)
Routes computed for each vehicle; the i-th route corresponds to the i-th vehicle in the model.OptimizeToursResponse.Builder
removeSkippedShipments(int index)
The list of all shipments skipped.OptimizeToursResponse.Builder
removeValidationErrors(int index)
List of all the validation errors that we were able to detect independently.OptimizeToursResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
OptimizeToursResponse.Builder
setMetrics(OptimizeToursResponse.Metrics value)
Duration, distance and usage metrics for this solution.OptimizeToursResponse.Builder
setMetrics(OptimizeToursResponse.Metrics.Builder builderForValue)
Duration, distance and usage metrics for this solution.OptimizeToursResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
OptimizeToursResponse.Builder
setRequestLabel(String value)
Copy of the [OptimizeToursRequest.label][google.cloud.optimization.v1.OptimizeToursRequest.label], if a label was specified in the request.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.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.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.OptimizeToursResponse.Builder
setSkippedShipments(int index, SkippedShipment value)
The list of all shipments skipped.OptimizeToursResponse.Builder
setSkippedShipments(int index, SkippedShipment.Builder builderForValue)
The list of all shipments skipped.OptimizeToursResponse.Builder
setTotalCost(double value)
Deprecated.google.cloud.optimization.v1.OptimizeToursResponse.total_cost is deprecated.OptimizeToursResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
OptimizeToursResponse.Builder
setValidationErrors(int index, OptimizeToursValidationError value)
List of all the validation errors that we were able to detect independently.OptimizeToursResponse.Builder
setValidationErrors(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
clear
public OptimizeToursResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
getDefaultInstanceForType
public OptimizeToursResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public OptimizeToursResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OptimizeToursResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OptimizeToursResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
setField
public OptimizeToursResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
clearField
public OptimizeToursResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
clearOneof
public OptimizeToursResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
setRepeatedField
public OptimizeToursResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
addRepeatedField
public OptimizeToursResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
mergeFrom
public OptimizeToursResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<OptimizeToursResponse.Builder>
-
mergeFrom
public OptimizeToursResponse.Builder mergeFrom(OptimizeToursResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getRoutesList
in 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:
getRoutesCount
in 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:
getRoutes
in 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:
getRoutesOrBuilder
in 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:
getRoutesOrBuilderList
in 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:
getRequestLabel
in 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:
getRequestLabelBytes
in 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:
getSkippedShipmentsList
in interfaceOptimizeToursResponseOrBuilder
-
getSkippedShipmentsCount
public int getSkippedShipmentsCount()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
- Specified by:
getSkippedShipmentsCount
in interfaceOptimizeToursResponseOrBuilder
-
getSkippedShipments
public SkippedShipment getSkippedShipments(int index)
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
- Specified by:
getSkippedShipments
in 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:
getSkippedShipmentsOrBuilder
in interfaceOptimizeToursResponseOrBuilder
-
getSkippedShipmentsOrBuilderList
public List<? extends SkippedShipmentOrBuilder> getSkippedShipmentsOrBuilderList()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;
- Specified by:
getSkippedShipmentsOrBuilderList
in 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:
getValidationErrorsList
in 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:
getValidationErrorsCount
in 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:
getValidationErrors
in 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:
getValidationErrorsOrBuilder
in 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:
getValidationErrorsOrBuilderList
in 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:
hasMetrics
in 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:
getMetrics
in 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:
getMetricsOrBuilder
in 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:
getTotalCost
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
mergeUnknownFields
public final OptimizeToursResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<OptimizeToursResponse.Builder>
-
-