Package com.google.cloud.optimization.v1
Class OptimizeToursResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.optimization.v1.OptimizeToursResponse
-
- All Implemented Interfaces:
OptimizeToursResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class OptimizeToursResponse extends com.google.protobuf.GeneratedMessageV3 implements OptimizeToursResponseOrBuilder
Response after solving a tour optimization problem containing the routes followed by each vehicle, the shipments which have been skipped and the overall cost of the solution.
Protobuf typegoogle.cloud.optimization.v1.OptimizeToursResponse- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOptimizeToursResponse.BuilderResponse 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.static classOptimizeToursResponse.MetricsOverall metrics, aggregated over all routes.static interfaceOptimizeToursResponse.MetricsOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intMETRICS_FIELD_NUMBERstatic intREQUEST_LABEL_FIELD_NUMBERstatic intROUTES_FIELD_NUMBERstatic intSKIPPED_SHIPMENTS_FIELD_NUMBERstatic intTOTAL_COST_FIELD_NUMBERstatic intVALIDATION_ERRORS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)static OptimizeToursResponsegetDefaultInstance()OptimizeToursResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()OptimizeToursResponse.MetricsgetMetrics()Duration, distance and usage metrics for this solution.OptimizeToursResponse.MetricsOrBuildergetMetricsOrBuilder()Duration, distance and usage metrics for this solution.com.google.protobuf.Parser<OptimizeToursResponse>getParserForType()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.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.intgetSerializedSize()SkippedShipmentgetSkippedShipments(int index)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.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.inthashCode()booleanhasMetrics()Duration, distance and usage metrics for this solution.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OptimizeToursResponse.BuildernewBuilder()static OptimizeToursResponse.BuildernewBuilder(OptimizeToursResponse prototype)OptimizeToursResponse.BuildernewBuilderForType()protected OptimizeToursResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OptimizeToursResponseparseDelimitedFrom(InputStream input)static OptimizeToursResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OptimizeToursResponseparseFrom(byte[] data)static OptimizeToursResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OptimizeToursResponseparseFrom(com.google.protobuf.ByteString data)static OptimizeToursResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OptimizeToursResponseparseFrom(com.google.protobuf.CodedInputStream input)static OptimizeToursResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OptimizeToursResponseparseFrom(InputStream input)static OptimizeToursResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OptimizeToursResponseparseFrom(ByteBuffer data)static OptimizeToursResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OptimizeToursResponse>parser()OptimizeToursResponse.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
ROUTES_FIELD_NUMBER
public static final int ROUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUEST_LABEL_FIELD_NUMBER
public static final int REQUEST_LABEL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SKIPPED_SHIPMENTS_FIELD_NUMBER
public static final int SKIPPED_SHIPMENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALIDATION_ERRORS_FIELD_NUMBER
public static final int VALIDATION_ERRORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METRICS_FIELD_NUMBER
public static final int METRICS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_COST_FIELD_NUMBER
public static final int TOTAL_COST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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
-
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
-
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
-
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
-
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.
-
getSkippedShipmentsList
public List<SkippedShipment> getSkippedShipmentsList()
The list of all shipments skipped.
repeated .google.cloud.optimization.v1.SkippedShipment skipped_shipments = 4;- Specified by:
getSkippedShipmentsListin 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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static OptimizeToursResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OptimizeToursResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OptimizeToursResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OptimizeToursResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OptimizeToursResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OptimizeToursResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OptimizeToursResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OptimizeToursResponse.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OptimizeToursResponse.Builder newBuilder()
-
newBuilder
public static OptimizeToursResponse.Builder newBuilder(OptimizeToursResponse prototype)
-
toBuilder
public OptimizeToursResponse.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OptimizeToursResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OptimizeToursResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OptimizeToursResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<OptimizeToursResponse> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OptimizeToursResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-