Represents a TripService
Inheritance
$protobuf.rpc.Service > protos.maps.fleetengine.v1.TripServicePackage
@googlemaps/fleetengineConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new TripService 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): TripService;
Creates new TripService 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 |
TripService |
RPC service. Useful where requests and/or responses are streamed. |
createTrip(request, callback)
public createTrip(request: maps.fleetengine.v1.ICreateTripRequest, callback: maps.fleetengine.v1.TripService.CreateTripCallback): void;
Calls CreateTrip.
Parameters | |
---|---|
Name | Description |
request |
ICreateTripRequest
CreateTripRequest message or plain object |
callback |
CreateTripCallback
Node-style callback called with the error, if any, and Trip |
Returns | |
---|---|
Type | Description |
void |
createTrip(request)
public createTrip(request: maps.fleetengine.v1.ICreateTripRequest): Promise<maps.fleetengine.v1.Trip>;
Calls CreateTrip.
Parameter | |
---|---|
Name | Description |
request |
ICreateTripRequest
CreateTripRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.Trip> |
Promise |
getTrip(request, callback)
public getTrip(request: maps.fleetengine.v1.IGetTripRequest, callback: maps.fleetengine.v1.TripService.GetTripCallback): void;
Calls GetTrip.
Parameters | |
---|---|
Name | Description |
request |
IGetTripRequest
GetTripRequest message or plain object |
callback |
GetTripCallback
Node-style callback called with the error, if any, and Trip |
Returns | |
---|---|
Type | Description |
void |
getTrip(request)
public getTrip(request: maps.fleetengine.v1.IGetTripRequest): Promise<maps.fleetengine.v1.Trip>;
Calls GetTrip.
Parameter | |
---|---|
Name | Description |
request |
IGetTripRequest
GetTripRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.Trip> |
Promise |
reportBillableTrip(request, callback)
public reportBillableTrip(request: maps.fleetengine.v1.IReportBillableTripRequest, callback: maps.fleetengine.v1.TripService.ReportBillableTripCallback): void;
Calls ReportBillableTrip.
Parameters | |
---|---|
Name | Description |
request |
IReportBillableTripRequest
ReportBillableTripRequest message or plain object |
callback |
ReportBillableTripCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
reportBillableTrip(request)
public reportBillableTrip(request: maps.fleetengine.v1.IReportBillableTripRequest): Promise<google.protobuf.Empty>;
Calls ReportBillableTrip.
Parameter | |
---|---|
Name | Description |
request |
IReportBillableTripRequest
ReportBillableTripRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
searchTrips(request, callback)
public searchTrips(request: maps.fleetengine.v1.ISearchTripsRequest, callback: maps.fleetengine.v1.TripService.SearchTripsCallback): void;
Calls SearchTrips.
Parameters | |
---|---|
Name | Description |
request |
ISearchTripsRequest
SearchTripsRequest message or plain object |
callback |
SearchTripsCallback
Node-style callback called with the error, if any, and SearchTripsResponse |
Returns | |
---|---|
Type | Description |
void |
searchTrips(request)
public searchTrips(request: maps.fleetengine.v1.ISearchTripsRequest): Promise<maps.fleetengine.v1.SearchTripsResponse>;
Calls SearchTrips.
Parameter | |
---|---|
Name | Description |
request |
ISearchTripsRequest
SearchTripsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.SearchTripsResponse> |
Promise |
updateTrip(request, callback)
public updateTrip(request: maps.fleetengine.v1.IUpdateTripRequest, callback: maps.fleetengine.v1.TripService.UpdateTripCallback): void;
Calls UpdateTrip.
Parameters | |
---|---|
Name | Description |
request |
IUpdateTripRequest
UpdateTripRequest message or plain object |
callback |
UpdateTripCallback
Node-style callback called with the error, if any, and Trip |
Returns | |
---|---|
Type | Description |
void |
updateTrip(request)
public updateTrip(request: maps.fleetengine.v1.IUpdateTripRequest): Promise<maps.fleetengine.v1.Trip>;
Calls UpdateTrip.
Parameter | |
---|---|
Name | Description |
request |
IUpdateTripRequest
UpdateTripRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<maps.fleetengine.v1.Trip> |
Promise |