Represents a FleetRouting
Inheritance
$protobuf.rpc.Service > protos.google.cloud.optimization.v1.FleetRoutingPackage
@google-cloud/optimizationConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new FleetRouting service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
batchOptimizeTours(request)
public batchOptimizeTours(request: google.cloud.optimization.v1.IBatchOptimizeToursRequest): Promise<google.longrunning.Operation>;
Calls BatchOptimizeTours.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.optimization.v1.IBatchOptimizeToursRequest
BatchOptimizeToursRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
optimizeTours(request)
public optimizeTours(request: google.cloud.optimization.v1.IOptimizeToursRequest): Promise<google.cloud.optimization.v1.OptimizeToursResponse>;
Calls OptimizeTours.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.optimization.v1.IOptimizeToursRequest
OptimizeToursRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.optimization.v1.OptimizeToursResponse> | Promise |