Constructor
new FleetRouting(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new FleetRouting service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
batchOptimizeTours(request, callback) → {undefined}
Calls BatchOptimizeTours.
Parameters:
Name | Type | 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 |
---|---|
undefined |
batchOptimizeTours(request) → {Promise.<google.longrunning.Operation>}
Calls BatchOptimizeTours.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.optimization.v1.IBatchOptimizeToursRequest |
BatchOptimizeToursRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
optimizeTours(request, callback) → {undefined}
Calls OptimizeTours.
Parameters:
Name | Type | 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 |
---|---|
undefined |
optimizeTours(request) → {Promise.<google.cloud.optimization.v1.OptimizeToursResponse>}
Calls OptimizeTours.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.optimization.v1.IOptimizeToursRequest |
OptimizeToursRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.optimization.v1.OptimizeToursResponse> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {FleetRouting}
Creates new FleetRouting service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
FleetRouting |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
BatchOptimizeToursCallback(error, responseopt)
Callback as used by batchOptimizeTours.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
OptimizeToursCallback(error, responseopt)
Callback as used by optimizeTours.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.optimization.v1.OptimizeToursResponse |
<optional> |
OptimizeToursResponse |