Class protos.google.cloud.optimization.v1.FleetRouting (2.2.1)

Represents a FleetRouting

Inheritance

$protobuf.rpc.Service > protos.google.cloud.optimization.v1.FleetRouting

Package

@google-cloud/optimization

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new FleetRouting service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

batchOptimizeTours(request, callback)

public batchOptimizeTours(request: google.cloud.optimization.v1.IBatchOptimizeToursRequest, callback: google.cloud.optimization.v1.FleetRouting.BatchOptimizeToursCallback): void;

Calls BatchOptimizeTours.

Parameters
NameDescription
request google.cloud.optimization.v1.IBatchOptimizeToursRequest

BatchOptimizeToursRequest message or plain object

callback google.cloud.optimization.v1.FleetRouting.BatchOptimizeToursCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

batchOptimizeTours(request)

public batchOptimizeTours(request: google.cloud.optimization.v1.IBatchOptimizeToursRequest): Promise<google.longrunning.Operation>;

Calls BatchOptimizeTours.

Parameter
NameDescription
request google.cloud.optimization.v1.IBatchOptimizeToursRequest

BatchOptimizeToursRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FleetRouting;

Creates new FleetRouting service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
FleetRouting

RPC service. Useful where requests and/or responses are streamed.

optimizeTours(request, callback)

public optimizeTours(request: google.cloud.optimization.v1.IOptimizeToursRequest, callback: google.cloud.optimization.v1.FleetRouting.OptimizeToursCallback): void;

Calls OptimizeTours.

Parameters
NameDescription
request google.cloud.optimization.v1.IOptimizeToursRequest

OptimizeToursRequest message or plain object

callback google.cloud.optimization.v1.FleetRouting.OptimizeToursCallback

Node-style callback called with the error, if any, and OptimizeToursResponse

Returns
TypeDescription
void

optimizeTours(request)

public optimizeTours(request: google.cloud.optimization.v1.IOptimizeToursRequest): Promise<google.cloud.optimization.v1.OptimizeToursResponse>;

Calls OptimizeTours.

Parameter
NameDescription
request google.cloud.optimization.v1.IOptimizeToursRequest

OptimizeToursRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.optimization.v1.OptimizeToursResponse>

Promise