Represents a VehicleService
Inheritance
$protobuf.rpc.Service > protos.maps.fleetengine.v1.VehicleServicePackage
@googlemaps/fleetengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new VehicleService service.
Parameters | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): VehicleService;
Creates new VehicleService 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 |
VehicleService |
RPC service. Useful where requests and/or responses are streamed. |
createVehicle(request, callback)
public createVehicle(request: maps.fleetengine.v1.ICreateVehicleRequest, callback: maps.fleetengine.v1.VehicleService.CreateVehicleCallback): void;
Calls CreateVehicle.
Parameters | |
---|---|
Name | Description |
request |
ICreateVehicleRequest
CreateVehicleRequest message or plain object |
callback |
CreateVehicleCallback
Node-style callback called with the error, if any, and Vehicle |
Returns | |
---|---|
Type | Description |
void |
createVehicle(request)
public createVehicle(request: maps.fleetengine.v1.ICreateVehicleRequest): Promise<maps.fleetengine.v1.Vehicle>;
Calls CreateVehicle.
Parameter | |
---|---|
Name | Description |
request |
ICreateVehicleRequest
CreateVehicleRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.Vehicle> |
Promise |
getVehicle(request, callback)
public getVehicle(request: maps.fleetengine.v1.IGetVehicleRequest, callback: maps.fleetengine.v1.VehicleService.GetVehicleCallback): void;
Calls GetVehicle.
Parameters | |
---|---|
Name | Description |
request |
IGetVehicleRequest
GetVehicleRequest message or plain object |
callback |
GetVehicleCallback
Node-style callback called with the error, if any, and Vehicle |
Returns | |
---|---|
Type | Description |
void |
getVehicle(request)
public getVehicle(request: maps.fleetengine.v1.IGetVehicleRequest): Promise<maps.fleetengine.v1.Vehicle>;
Calls GetVehicle.
Parameter | |
---|---|
Name | Description |
request |
IGetVehicleRequest
GetVehicleRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.Vehicle> |
Promise |
listVehicles(request, callback)
public listVehicles(request: maps.fleetengine.v1.IListVehiclesRequest, callback: maps.fleetengine.v1.VehicleService.ListVehiclesCallback): void;
Calls ListVehicles.
Parameters | |
---|---|
Name | Description |
request |
IListVehiclesRequest
ListVehiclesRequest message or plain object |
callback |
ListVehiclesCallback
Node-style callback called with the error, if any, and ListVehiclesResponse |
Returns | |
---|---|
Type | Description |
void |
listVehicles(request)
public listVehicles(request: maps.fleetengine.v1.IListVehiclesRequest): Promise<maps.fleetengine.v1.ListVehiclesResponse>;
Calls ListVehicles.
Parameter | |
---|---|
Name | Description |
request |
IListVehiclesRequest
ListVehiclesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.ListVehiclesResponse> |
Promise |
searchVehicles(request, callback)
public searchVehicles(request: maps.fleetengine.v1.ISearchVehiclesRequest, callback: maps.fleetengine.v1.VehicleService.SearchVehiclesCallback): void;
Calls SearchVehicles.
Parameters | |
---|---|
Name | Description |
request |
ISearchVehiclesRequest
SearchVehiclesRequest message or plain object |
callback |
SearchVehiclesCallback
Node-style callback called with the error, if any, and SearchVehiclesResponse |
Returns | |
---|---|
Type | Description |
void |
searchVehicles(request)
public searchVehicles(request: maps.fleetengine.v1.ISearchVehiclesRequest): Promise<maps.fleetengine.v1.SearchVehiclesResponse>;
Calls SearchVehicles.
Parameter | |
---|---|
Name | Description |
request |
ISearchVehiclesRequest
SearchVehiclesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.SearchVehiclesResponse> |
Promise |
updateVehicle(request, callback)
public updateVehicle(request: maps.fleetengine.v1.IUpdateVehicleRequest, callback: maps.fleetengine.v1.VehicleService.UpdateVehicleCallback): void;
Calls UpdateVehicle.
Parameters | |
---|---|
Name | Description |
request |
IUpdateVehicleRequest
UpdateVehicleRequest message or plain object |
callback |
UpdateVehicleCallback
Node-style callback called with the error, if any, and Vehicle |
Returns | |
---|---|
Type | Description |
void |
updateVehicle(request)
public updateVehicle(request: maps.fleetengine.v1.IUpdateVehicleRequest): Promise<maps.fleetengine.v1.Vehicle>;
Calls UpdateVehicle.
Parameter | |
---|---|
Name | Description |
request |
IUpdateVehicleRequest
UpdateVehicleRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.Vehicle> |
Promise |
updateVehicleAttributes(request, callback)
public updateVehicleAttributes(request: maps.fleetengine.v1.IUpdateVehicleAttributesRequest, callback: maps.fleetengine.v1.VehicleService.UpdateVehicleAttributesCallback): void;
Calls UpdateVehicleAttributes.
Parameters | |
---|---|
Name | Description |
request |
IUpdateVehicleAttributesRequest
UpdateVehicleAttributesRequest message or plain object |
callback |
UpdateVehicleAttributesCallback
Node-style callback called with the error, if any, and UpdateVehicleAttributesResponse |
Returns | |
---|---|
Type | Description |
void |
updateVehicleAttributes(request)
public updateVehicleAttributes(request: maps.fleetengine.v1.IUpdateVehicleAttributesRequest): Promise<maps.fleetengine.v1.UpdateVehicleAttributesResponse>;
Calls UpdateVehicleAttributes.
Parameter | |
---|---|
Name | Description |
request |
IUpdateVehicleAttributesRequest
UpdateVehicleAttributesRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.UpdateVehicleAttributesResponse> |
Promise |