2.7.0 (latest) 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.0.0-beta01

    [BindServiceMethod(typeof(FleetRouting), "BindService")]
    public abstract class FleetRouting.FleetRoutingBase

Reference documentation and code samples for the Cloud Optimization v1 API class FleetRouting.FleetRoutingBase.

Base class for server-side implementations of FleetRouting

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> FleetRouting.FleetRoutingBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Optimization.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Optimization.V1/latest/Google.Cloud.Optimization.V1.md.txt)

## Assembly

Google.Cloud.Optimization.V1.dll

## Methods

### BatchOptimizeTours(BatchOptimizeToursRequest, ServerCallContext)

    public virtual Task<Operation> BatchOptimizeTours(BatchOptimizeToursRequest request, ServerCallContext context)

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.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchOptimizeToursRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |

### OptimizeTours(OptimizeToursRequest, ServerCallContext)

    public virtual Task<OptimizeToursResponse> OptimizeTours(OptimizeToursRequest request, ServerCallContext context)

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`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `OptimizeToursRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOptimizeToursResponse` | The response to send back to the client (wrapped by a task). |