Class TripServiceClientImpl
TripService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Maps.FleetEngine.V1
Assembly: Google.Maps.FleetEngine.V1.dll
Syntax
public sealed class TripServiceClientImpl : TripServiceClient
Remarks
Trip management service.
Constructors
TripServiceClientImpl(TripServiceClient, TripServiceSettings, ILogger)
Constructs a client wrapper for the TripService service, with the specified gRPC client and settings.
Declaration
public TripServiceClientImpl(TripService.TripServiceClient grpcClient, TripServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
TripService.TripServiceClient | grpcClient | The underlying gRPC client. |
TripServiceSettings | settings | The base TripServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC TripService client
Declaration
public override TripService.TripServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
TripService.TripServiceClient |
Overrides
Methods
CreateTrip(CreateTripRequest, CallSettings)
Creates a trip in the Fleet Engine and returns the new trip.
Declaration
public override Trip CreateTrip(CreateTripRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateTripRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Trip | The RPC response. |
Overrides
CreateTripAsync(CreateTripRequest, CallSettings)
Creates a trip in the Fleet Engine and returns the new trip.
Declaration
public override Task<Trip> CreateTripAsync(CreateTripRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateTripRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Trip> | A Task containing the RPC response. |
Overrides
GetTrip(GetTripRequest, CallSettings)
Get information about a single trip.
Declaration
public override Trip GetTrip(GetTripRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetTripRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Trip | The RPC response. |
Overrides
GetTripAsync(GetTripRequest, CallSettings)
Get information about a single trip.
Declaration
public override Task<Trip> GetTripAsync(GetTripRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetTripRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Trip> | A Task containing the RPC response. |
Overrides
ReportBillableTrip(ReportBillableTripRequest, CallSettings)
Report billable trip usage.
Declaration
public override void ReportBillableTrip(ReportBillableTripRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ReportBillableTripRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
ReportBillableTripAsync(ReportBillableTripRequest, CallSettings)
Report billable trip usage.
Declaration
public override Task ReportBillableTripAsync(ReportBillableTripRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ReportBillableTripRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task | A Task containing the RPC response. |
Overrides
SearchTrips(SearchTripsRequest, CallSettings)
Get all the trips for a specific vehicle.
Declaration
public override PagedEnumerable<SearchTripsResponse, Trip> SearchTrips(SearchTripsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SearchTripsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<SearchTripsResponse, Trip> | A pageable sequence of Trip resources. |
Overrides
SearchTripsAsync(SearchTripsRequest, CallSettings)
Get all the trips for a specific vehicle.
Declaration
public override PagedAsyncEnumerable<SearchTripsResponse, Trip> SearchTripsAsync(SearchTripsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
SearchTripsRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<SearchTripsResponse, Trip> | A pageable asynchronous sequence of Trip resources. |
Overrides
UpdateTrip(UpdateTripRequest, CallSettings)
Updates trip data.
Declaration
public override Trip UpdateTrip(UpdateTripRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateTripRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Trip | The RPC response. |
Overrides
UpdateTripAsync(UpdateTripRequest, CallSettings)
Updates trip data.
Declaration
public override Task<Trip> UpdateTripAsync(UpdateTripRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateTripRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<Trip> | A Task containing the RPC response. |