Show / Hide Table of Contents

Class TripService.TripServiceBase

Base class for server-side implementations of TripService

Inheritance
object
TripService.TripServiceBase
Inherited Members
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Maps.FleetEngine.V1
Assembly: Google.Maps.FleetEngine.V1.dll
Syntax
[BindServiceMethod(typeof(TripService), "BindService")]
public abstract class TripService.TripServiceBase

Methods

CreateTrip(CreateTripRequest, ServerCallContext)

Creates a trip in the Fleet Engine and returns the new trip.

Declaration
public virtual Task<Trip> CreateTrip(CreateTripRequest request, ServerCallContext context)
Parameters
Type Name Description
CreateTripRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Trip>

The response to send back to the client (wrapped by a task).

DeleteTrip(DeleteTripRequest, ServerCallContext)

Deletes a single Trip.

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

Declaration
public virtual Task<Empty> DeleteTrip(DeleteTripRequest request, ServerCallContext context)
Parameters
Type Name Description
DeleteTripRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Empty>

The response to send back to the client (wrapped by a task).

GetTrip(GetTripRequest, ServerCallContext)

Get information about a single trip.

Declaration
public virtual Task<Trip> GetTrip(GetTripRequest request, ServerCallContext context)
Parameters
Type Name Description
GetTripRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Trip>

The response to send back to the client (wrapped by a task).

ReportBillableTrip(ReportBillableTripRequest, ServerCallContext)

Report billable trip usage.

Declaration
public virtual Task<Empty> ReportBillableTrip(ReportBillableTripRequest request, ServerCallContext context)
Parameters
Type Name Description
ReportBillableTripRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Empty>

The response to send back to the client (wrapped by a task).

SearchTrips(SearchTripsRequest, ServerCallContext)

Get all the trips for a specific vehicle.

Declaration
public virtual Task<SearchTripsResponse> SearchTrips(SearchTripsRequest request, ServerCallContext context)
Parameters
Type Name Description
SearchTripsRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<SearchTripsResponse>

The response to send back to the client (wrapped by a task).

UpdateTrip(UpdateTripRequest, ServerCallContext)

Updates trip data.

Declaration
public virtual Task<Trip> UpdateTrip(UpdateTripRequest request, ServerCallContext context)
Parameters
Type Name Description
UpdateTripRequest request

The request received from the client.

ServerCallContext context

The context of the server-side call handler being invoked.

Returns
Type Description
Task<Trip>

The response to send back to the client (wrapped by a task).

In this article
Back to top Generated by DocFX