Show / Hide Table of Contents

Class TripServiceClientImpl

TripService client wrapper implementation, for convenient use.

Inheritance
object
TripServiceClient
TripServiceClientImpl
Inherited Members
TripServiceClient.DefaultEndpoint
TripServiceClient.DefaultScopes
TripServiceClient.ServiceMetadata
TripServiceClient.CreateAsync(CancellationToken)
TripServiceClient.Create()
TripServiceClient.ShutdownDefaultChannelsAsync()
TripServiceClient.CreateTripAsync(CreateTripRequest, CancellationToken)
TripServiceClient.GetTripAsync(GetTripRequest, CancellationToken)
TripServiceClient.DeleteTripAsync(DeleteTripRequest, CancellationToken)
TripServiceClient.DeleteTrip(string, CallSettings)
TripServiceClient.DeleteTripAsync(string, CallSettings)
TripServiceClient.DeleteTripAsync(string, CancellationToken)
TripServiceClient.DeleteTrip(TripName, CallSettings)
TripServiceClient.DeleteTripAsync(TripName, CallSettings)
TripServiceClient.DeleteTripAsync(TripName, CancellationToken)
TripServiceClient.ReportBillableTripAsync(ReportBillableTripRequest, CancellationToken)
TripServiceClient.UpdateTripAsync(UpdateTripRequest, CancellationToken)
object.GetHashCode()
object.GetType()
object.ToString()
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
TripServiceClient.GrpcClient

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
TripServiceClient.CreateTrip(CreateTripRequest, CallSettings)

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
TripServiceClient.CreateTripAsync(CreateTripRequest, CallSettings)

DeleteTrip(DeleteTripRequest, CallSettings)

Deletes a single Trip.

Returns FAILED_PRECONDITION if the Trip is active and assigned to a vehicle.

Declaration
public override void DeleteTrip(DeleteTripRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DeleteTripRequest 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
TripServiceClient.DeleteTrip(DeleteTripRequest, CallSettings)

DeleteTripAsync(DeleteTripRequest, CallSettings)

Deletes a single Trip.

Returns FAILED_PRECONDITION if the Trip is active and assigned to a vehicle.

Declaration
public override Task DeleteTripAsync(DeleteTripRequest request, CallSettings callSettings = null)
Parameters
Type Name Description
DeleteTripRequest 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
TripServiceClient.DeleteTripAsync(DeleteTripRequest, CallSettings)

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
TripServiceClient.GetTrip(GetTripRequest, CallSettings)

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
TripServiceClient.GetTripAsync(GetTripRequest, CallSettings)

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
TripServiceClient.ReportBillableTrip(ReportBillableTripRequest, CallSettings)

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
TripServiceClient.ReportBillableTripAsync(ReportBillableTripRequest, CallSettings)

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
TripServiceClient.SearchTrips(SearchTripsRequest, CallSettings)

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
TripServiceClient.SearchTripsAsync(SearchTripsRequest, CallSettings)

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
TripServiceClient.UpdateTrip(UpdateTripRequest, CallSettings)

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.

Overrides
TripServiceClient.UpdateTripAsync(UpdateTripRequest, CallSettings)
In this article
Back to top Generated by DocFX