Package com.google.cloud.optimization.v1
Class FleetRoutingGrpc.FleetRoutingBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<FleetRoutingGrpc.FleetRoutingBlockingV2Stub>
com.google.cloud.optimization.v1.FleetRoutingGrpc.FleetRoutingBlockingV2Stub
- Enclosing class:
- FleetRoutingGrpc
public static final class FleetRoutingGrpc.FleetRoutingBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<FleetRoutingGrpc.FleetRoutingBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service FleetRouting.
A service for optimizing vehicle tours.
Validity of certain types of fields:
* `google.protobuf.Timestamp`
* Times are in Unix time: seconds since 1970-01-01T00:00:00+00:00.
* seconds must be in [0, 253402300799],
i.e. in [1970-01-01T00:00:00+00:00, 9999-12-31T23:59:59+00:00].
* nanos must be unset or set to 0.
* `google.protobuf.Duration`
* seconds must be in [0, 253402300799],
i.e. in [1970-01-01T00:00:00+00:00, 9999-12-31T23:59:59+00:00].
* nanos must be unset or set to 0.
* `google.type.LatLng`
* latitude must be in [-90.0, 90.0].
* longitude must be in [-180.0, 180.0].
* at least one of latitude and longitude must be non-zero.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionOptimizes vehicle tours for one or more `OptimizeToursRequest` messages as a batch.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) optimizeTours(OptimizeToursRequest request) Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of routes to be performed by vehicles minimizing the overall cost.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected FleetRoutingGrpc.FleetRoutingBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<FleetRoutingGrpc.FleetRoutingBlockingV2Stub>
-
optimizeTours
public OptimizeToursResponse optimizeTours(OptimizeToursRequest request) throws io.grpc.StatusException Sends an `OptimizeToursRequest` containing a `ShipmentModel` and returns an `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of routes to be performed by vehicles minimizing the overall cost. A `ShipmentModel` model consists mainly of `Shipment`s that need to be carried out and `Vehicle`s that can be used to transport the `Shipment`s. The `ShipmentRoute`s assign `Shipment`s to `Vehicle`s. More specifically, they assign a series of `Visit`s to each vehicle, where a `Visit` corresponds to a `VisitRequest`, which is a pickup or delivery for a `Shipment`. The goal is to provide an assignment of `ShipmentRoute`s to `Vehicle`s that minimizes the total cost where cost has many components defined in the `ShipmentModel`.
- Throws:
io.grpc.StatusException
-
batchOptimizeTours
public Operation batchOptimizeTours(BatchOptimizeToursRequest request) throws io.grpc.StatusException Optimizes vehicle tours for one or more `OptimizeToursRequest` messages as a batch. This method is a Long Running Operation (LRO). The inputs for optimization (`OptimizeToursRequest` messages) and outputs (`OptimizeToursResponse` messages) are read/written from/to Cloud Storage in user-specified format. Like the `OptimizeTours` method, each `OptimizeToursRequest` contains a `ShipmentModel` and returns an `OptimizeToursResponse` containing `ShipmentRoute`s, which are a set of routes to be performed by vehicles minimizing the overall cost.
- Throws:
io.grpc.StatusException
-