Class DeliveryService.DeliveryServiceBase
Base class for server-side implementations of DeliveryService
Namespace: Google.Maps.FleetEngine.Delivery.V1
Assembly: Google.Maps.FleetEngine.Delivery.V1.dll
Syntax
[BindServiceMethod(typeof(DeliveryService), "BindService")]
public abstract class DeliveryService.DeliveryServiceBase
Methods
BatchCreateTasks(BatchCreateTasksRequest, ServerCallContext)
Creates and returns a batch of new Task
objects.
Declaration
public virtual Task<BatchCreateTasksResponse> BatchCreateTasks(BatchCreateTasksRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
BatchCreateTasksRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<BatchCreateTasksResponse> | The response to send back to the client (wrapped by a task). |
CreateDeliveryVehicle(CreateDeliveryVehicleRequest, ServerCallContext)
Creates and returns a new DeliveryVehicle
.
Declaration
public virtual Task<DeliveryVehicle> CreateDeliveryVehicle(CreateDeliveryVehicleRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
CreateDeliveryVehicleRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<DeliveryVehicle> | The response to send back to the client (wrapped by a task). |
CreateTask(CreateTaskRequest, ServerCallContext)
Creates and returns a new Task
object.
Declaration
public virtual Task<Task> CreateTask(CreateTaskRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
CreateTaskRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Task> | The response to send back to the client (wrapped by a task). |
GetDeliveryVehicle(GetDeliveryVehicleRequest, ServerCallContext)
Returns the specified DeliveryVehicle
instance.
Declaration
public virtual Task<DeliveryVehicle> GetDeliveryVehicle(GetDeliveryVehicleRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetDeliveryVehicleRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<DeliveryVehicle> | The response to send back to the client (wrapped by a task). |
GetTask(GetTaskRequest, ServerCallContext)
Gets information about a Task
.
Declaration
public virtual Task<Task> GetTask(GetTaskRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetTaskRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Task> | The response to send back to the client (wrapped by a task). |
GetTaskTrackingInfo(GetTaskTrackingInfoRequest, ServerCallContext)
Returns the specified TaskTrackingInfo
instance.
Declaration
public virtual Task<TaskTrackingInfo> GetTaskTrackingInfo(GetTaskTrackingInfoRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
GetTaskTrackingInfoRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<TaskTrackingInfo> | The response to send back to the client (wrapped by a task). |
ListDeliveryVehicles(ListDeliveryVehiclesRequest, ServerCallContext)
Gets all DeliveryVehicle
s that meet the specified filtering criteria.
Declaration
public virtual Task<ListDeliveryVehiclesResponse> ListDeliveryVehicles(ListDeliveryVehiclesRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListDeliveryVehiclesRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListDeliveryVehiclesResponse> | The response to send back to the client (wrapped by a task). |
ListTasks(ListTasksRequest, ServerCallContext)
Gets all Task
s that meet the specified filtering criteria.
Declaration
public virtual Task<ListTasksResponse> ListTasks(ListTasksRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
ListTasksRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<ListTasksResponse> | The response to send back to the client (wrapped by a task). |
UpdateDeliveryVehicle(UpdateDeliveryVehicleRequest, ServerCallContext)
Writes updated DeliveryVehicle
data to Fleet Engine, and assigns
Tasks
to the DeliveryVehicle
. You cannot update the name of the
DeliveryVehicle
. You can update remaining_vehicle_journey_segments
though, but it must contain all of the VehicleJourneySegment
s currently
on the DeliveryVehicle
. The task_id
s are retrieved from
remaining_vehicle_journey_segments
, and their corresponding Tasks
are
assigned to the DeliveryVehicle
if they have not yet been assigned.
Declaration
public virtual Task<DeliveryVehicle> UpdateDeliveryVehicle(UpdateDeliveryVehicleRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
UpdateDeliveryVehicleRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<DeliveryVehicle> | The response to send back to the client (wrapped by a task). |
UpdateTask(UpdateTaskRequest, ServerCallContext)
Updates Task
data.
Declaration
public virtual Task<Task> UpdateTask(UpdateTaskRequest request, ServerCallContext context)
Parameters
Type | Name | Description |
---|---|---|
UpdateTaskRequest | request | The request received from the client. |
ServerCallContext | context | The context of the server-side call handler being invoked. |
Returns
Type | Description |
---|---|
Task<Task> | The response to send back to the client (wrapped by a task). |