Show / Hide Table of Contents

Class DeliveryService.DeliveryServiceClient

Client for DeliveryService

Inheritance
object
ClientBase
ClientBase<DeliveryService.DeliveryServiceClient>
DeliveryService.DeliveryServiceClient
Inherited Members
ClientBase<DeliveryService.DeliveryServiceClient>.WithHost(string)
ClientBase.CallInvoker
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ToString()
Namespace: Google.Maps.FleetEngine.Delivery.V1
Assembly: Google.Maps.FleetEngine.Delivery.V1.dll
Syntax
public class DeliveryService.DeliveryServiceClient : ClientBase<DeliveryService.DeliveryServiceClient>

Constructors

DeliveryServiceClient()

Protected parameterless constructor to allow creation of test doubles.

Declaration
protected DeliveryServiceClient()

DeliveryServiceClient(CallInvoker)

Creates a new client for DeliveryService that uses a custom CallInvoker.

Declaration
public DeliveryServiceClient(CallInvoker callInvoker)
Parameters
Type Name Description
CallInvoker callInvoker

The callInvoker to use to make remote calls.

DeliveryServiceClient(ChannelBase)

Creates a new client for DeliveryService

Declaration
public DeliveryServiceClient(ChannelBase channel)
Parameters
Type Name Description
ChannelBase channel

The channel to use to make remote calls.

DeliveryServiceClient(ClientBaseConfiguration)

Protected constructor to allow creation of configured clients.

Declaration
protected DeliveryServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration

The client configuration.

Methods

BatchCreateTasks(BatchCreateTasksRequest, CallOptions)

Creates and returns a batch of new Task objects.

Declaration
public virtual BatchCreateTasksResponse BatchCreateTasks(BatchCreateTasksRequest request, CallOptions options)
Parameters
Type Name Description
BatchCreateTasksRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
BatchCreateTasksResponse

The response received from the server.

BatchCreateTasks(BatchCreateTasksRequest, Metadata, DateTime?, CancellationToken)

Creates and returns a batch of new Task objects.

Declaration
public virtual BatchCreateTasksResponse BatchCreateTasks(BatchCreateTasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchCreateTasksRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
BatchCreateTasksResponse

The response received from the server.

BatchCreateTasksAsync(BatchCreateTasksRequest, CallOptions)

Creates and returns a batch of new Task objects.

Declaration
public virtual AsyncUnaryCall<BatchCreateTasksResponse> BatchCreateTasksAsync(BatchCreateTasksRequest request, CallOptions options)
Parameters
Type Name Description
BatchCreateTasksRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<BatchCreateTasksResponse>

The call object.

BatchCreateTasksAsync(BatchCreateTasksRequest, Metadata, DateTime?, CancellationToken)

Creates and returns a batch of new Task objects.

Declaration
public virtual AsyncUnaryCall<BatchCreateTasksResponse> BatchCreateTasksAsync(BatchCreateTasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
BatchCreateTasksRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<BatchCreateTasksResponse>

The call object.

CreateDeliveryVehicle(CreateDeliveryVehicleRequest, CallOptions)

Creates and returns a new DeliveryVehicle.

Declaration
public virtual DeliveryVehicle CreateDeliveryVehicle(CreateDeliveryVehicleRequest request, CallOptions options)
Parameters
Type Name Description
CreateDeliveryVehicleRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
DeliveryVehicle

The response received from the server.

CreateDeliveryVehicle(CreateDeliveryVehicleRequest, Metadata, DateTime?, CancellationToken)

Creates and returns a new DeliveryVehicle.

Declaration
public virtual DeliveryVehicle CreateDeliveryVehicle(CreateDeliveryVehicleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateDeliveryVehicleRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
DeliveryVehicle

The response received from the server.

CreateDeliveryVehicleAsync(CreateDeliveryVehicleRequest, CallOptions)

Creates and returns a new DeliveryVehicle.

Declaration
public virtual AsyncUnaryCall<DeliveryVehicle> CreateDeliveryVehicleAsync(CreateDeliveryVehicleRequest request, CallOptions options)
Parameters
Type Name Description
CreateDeliveryVehicleRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<DeliveryVehicle>

The call object.

CreateDeliveryVehicleAsync(CreateDeliveryVehicleRequest, Metadata, DateTime?, CancellationToken)

Creates and returns a new DeliveryVehicle.

Declaration
public virtual AsyncUnaryCall<DeliveryVehicle> CreateDeliveryVehicleAsync(CreateDeliveryVehicleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateDeliveryVehicleRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<DeliveryVehicle>

The call object.

CreateTask(CreateTaskRequest, CallOptions)

Creates and returns a new Task object.

Declaration
public virtual Task CreateTask(CreateTaskRequest request, CallOptions options)
Parameters
Type Name Description
CreateTaskRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Task

The response received from the server.

CreateTask(CreateTaskRequest, Metadata, DateTime?, CancellationToken)

Creates and returns a new Task object.

Declaration
public virtual Task CreateTask(CreateTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateTaskRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Task

The response received from the server.

CreateTaskAsync(CreateTaskRequest, CallOptions)

Creates and returns a new Task object.

Declaration
public virtual AsyncUnaryCall<Task> CreateTaskAsync(CreateTaskRequest request, CallOptions options)
Parameters
Type Name Description
CreateTaskRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Task>

The call object.

CreateTaskAsync(CreateTaskRequest, Metadata, DateTime?, CancellationToken)

Creates and returns a new Task object.

Declaration
public virtual AsyncUnaryCall<Task> CreateTaskAsync(CreateTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
CreateTaskRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Task>

The call object.

DeleteDeliveryVehicle(DeleteDeliveryVehicleRequest, CallOptions)

Deletes a DeliveryVehicle from the Fleet Engine.

Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks assigned to it.

Declaration
public virtual Empty DeleteDeliveryVehicle(DeleteDeliveryVehicleRequest request, CallOptions options)
Parameters
Type Name Description
DeleteDeliveryVehicleRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteDeliveryVehicle(DeleteDeliveryVehicleRequest, Metadata, DateTime?, CancellationToken)

Deletes a DeliveryVehicle from the Fleet Engine.

Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks assigned to it.

Declaration
public virtual Empty DeleteDeliveryVehicle(DeleteDeliveryVehicleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DeleteDeliveryVehicleRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteDeliveryVehicleAsync(DeleteDeliveryVehicleRequest, CallOptions)

Deletes a DeliveryVehicle from the Fleet Engine.

Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks assigned to it.

Declaration
public virtual AsyncUnaryCall<Empty> DeleteDeliveryVehicleAsync(DeleteDeliveryVehicleRequest request, CallOptions options)
Parameters
Type Name Description
DeleteDeliveryVehicleRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

DeleteDeliveryVehicleAsync(DeleteDeliveryVehicleRequest, Metadata, DateTime?, CancellationToken)

Deletes a DeliveryVehicle from the Fleet Engine.

Returns FAILED_PRECONDITION if the DeliveryVehicle has OPEN Tasks assigned to it.

Declaration
public virtual AsyncUnaryCall<Empty> DeleteDeliveryVehicleAsync(DeleteDeliveryVehicleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DeleteDeliveryVehicleRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

DeleteTask(DeleteTaskRequest, CallOptions)

Deletes a single Task.

Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a DeliveryVehicle.

Declaration
public virtual Empty DeleteTask(DeleteTaskRequest request, CallOptions options)
Parameters
Type Name Description
DeleteTaskRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteTask(DeleteTaskRequest, Metadata, DateTime?, CancellationToken)

Deletes a single Task.

Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a DeliveryVehicle.

Declaration
public virtual Empty DeleteTask(DeleteTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DeleteTaskRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Empty

The response received from the server.

DeleteTaskAsync(DeleteTaskRequest, CallOptions)

Deletes a single Task.

Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a DeliveryVehicle.

Declaration
public virtual AsyncUnaryCall<Empty> DeleteTaskAsync(DeleteTaskRequest request, CallOptions options)
Parameters
Type Name Description
DeleteTaskRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

DeleteTaskAsync(DeleteTaskRequest, Metadata, DateTime?, CancellationToken)

Deletes a single Task.

Returns FAILED_PRECONDITION if the Task is OPEN and assigned to a DeliveryVehicle.

Declaration
public virtual AsyncUnaryCall<Empty> DeleteTaskAsync(DeleteTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
DeleteTaskRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Empty>

The call object.

GetDeliveryVehicle(GetDeliveryVehicleRequest, CallOptions)

Returns the specified DeliveryVehicle instance.

Declaration
public virtual DeliveryVehicle GetDeliveryVehicle(GetDeliveryVehicleRequest request, CallOptions options)
Parameters
Type Name Description
GetDeliveryVehicleRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
DeliveryVehicle

The response received from the server.

GetDeliveryVehicle(GetDeliveryVehicleRequest, Metadata, DateTime?, CancellationToken)

Returns the specified DeliveryVehicle instance.

Declaration
public virtual DeliveryVehicle GetDeliveryVehicle(GetDeliveryVehicleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetDeliveryVehicleRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
DeliveryVehicle

The response received from the server.

GetDeliveryVehicleAsync(GetDeliveryVehicleRequest, CallOptions)

Returns the specified DeliveryVehicle instance.

Declaration
public virtual AsyncUnaryCall<DeliveryVehicle> GetDeliveryVehicleAsync(GetDeliveryVehicleRequest request, CallOptions options)
Parameters
Type Name Description
GetDeliveryVehicleRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<DeliveryVehicle>

The call object.

GetDeliveryVehicleAsync(GetDeliveryVehicleRequest, Metadata, DateTime?, CancellationToken)

Returns the specified DeliveryVehicle instance.

Declaration
public virtual AsyncUnaryCall<DeliveryVehicle> GetDeliveryVehicleAsync(GetDeliveryVehicleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetDeliveryVehicleRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<DeliveryVehicle>

The call object.

GetTask(GetTaskRequest, CallOptions)

Gets information about a Task.

Declaration
public virtual Task GetTask(GetTaskRequest request, CallOptions options)
Parameters
Type Name Description
GetTaskRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Task

The response received from the server.

GetTask(GetTaskRequest, Metadata, DateTime?, CancellationToken)

Gets information about a Task.

Declaration
public virtual Task GetTask(GetTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetTaskRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Task

The response received from the server.

GetTaskAsync(GetTaskRequest, CallOptions)

Gets information about a Task.

Declaration
public virtual AsyncUnaryCall<Task> GetTaskAsync(GetTaskRequest request, CallOptions options)
Parameters
Type Name Description
GetTaskRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Task>

The call object.

GetTaskAsync(GetTaskRequest, Metadata, DateTime?, CancellationToken)

Gets information about a Task.

Declaration
public virtual AsyncUnaryCall<Task> GetTaskAsync(GetTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetTaskRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Task>

The call object.

GetTaskTrackingInfo(GetTaskTrackingInfoRequest, CallOptions)

Returns the specified TaskTrackingInfo instance.

Declaration
public virtual TaskTrackingInfo GetTaskTrackingInfo(GetTaskTrackingInfoRequest request, CallOptions options)
Parameters
Type Name Description
GetTaskTrackingInfoRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
TaskTrackingInfo

The response received from the server.

GetTaskTrackingInfo(GetTaskTrackingInfoRequest, Metadata, DateTime?, CancellationToken)

Returns the specified TaskTrackingInfo instance.

Declaration
public virtual TaskTrackingInfo GetTaskTrackingInfo(GetTaskTrackingInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetTaskTrackingInfoRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
TaskTrackingInfo

The response received from the server.

GetTaskTrackingInfoAsync(GetTaskTrackingInfoRequest, CallOptions)

Returns the specified TaskTrackingInfo instance.

Declaration
public virtual AsyncUnaryCall<TaskTrackingInfo> GetTaskTrackingInfoAsync(GetTaskTrackingInfoRequest request, CallOptions options)
Parameters
Type Name Description
GetTaskTrackingInfoRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<TaskTrackingInfo>

The call object.

GetTaskTrackingInfoAsync(GetTaskTrackingInfoRequest, Metadata, DateTime?, CancellationToken)

Returns the specified TaskTrackingInfo instance.

Declaration
public virtual AsyncUnaryCall<TaskTrackingInfo> GetTaskTrackingInfoAsync(GetTaskTrackingInfoRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
GetTaskTrackingInfoRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<TaskTrackingInfo>

The call object.

ListDeliveryVehicles(ListDeliveryVehiclesRequest, CallOptions)

Gets all DeliveryVehicles that meet the specified filtering criteria.

Declaration
public virtual ListDeliveryVehiclesResponse ListDeliveryVehicles(ListDeliveryVehiclesRequest request, CallOptions options)
Parameters
Type Name Description
ListDeliveryVehiclesRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListDeliveryVehiclesResponse

The response received from the server.

ListDeliveryVehicles(ListDeliveryVehiclesRequest, Metadata, DateTime?, CancellationToken)

Gets all DeliveryVehicles that meet the specified filtering criteria.

Declaration
public virtual ListDeliveryVehiclesResponse ListDeliveryVehicles(ListDeliveryVehiclesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListDeliveryVehiclesRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
ListDeliveryVehiclesResponse

The response received from the server.

ListDeliveryVehiclesAsync(ListDeliveryVehiclesRequest, CallOptions)

Gets all DeliveryVehicles that meet the specified filtering criteria.

Declaration
public virtual AsyncUnaryCall<ListDeliveryVehiclesResponse> ListDeliveryVehiclesAsync(ListDeliveryVehiclesRequest request, CallOptions options)
Parameters
Type Name Description
ListDeliveryVehiclesRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListDeliveryVehiclesResponse>

The call object.

ListDeliveryVehiclesAsync(ListDeliveryVehiclesRequest, Metadata, DateTime?, CancellationToken)

Gets all DeliveryVehicles that meet the specified filtering criteria.

Declaration
public virtual AsyncUnaryCall<ListDeliveryVehiclesResponse> ListDeliveryVehiclesAsync(ListDeliveryVehiclesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListDeliveryVehiclesRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<ListDeliveryVehiclesResponse>

The call object.

ListTasks(ListTasksRequest, CallOptions)

Gets all Tasks that meet the specified filtering criteria.

Declaration
public virtual ListTasksResponse ListTasks(ListTasksRequest request, CallOptions options)
Parameters
Type Name Description
ListTasksRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
ListTasksResponse

The response received from the server.

ListTasks(ListTasksRequest, Metadata, DateTime?, CancellationToken)

Gets all Tasks that meet the specified filtering criteria.

Declaration
public virtual ListTasksResponse ListTasks(ListTasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListTasksRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
ListTasksResponse

The response received from the server.

ListTasksAsync(ListTasksRequest, CallOptions)

Gets all Tasks that meet the specified filtering criteria.

Declaration
public virtual AsyncUnaryCall<ListTasksResponse> ListTasksAsync(ListTasksRequest request, CallOptions options)
Parameters
Type Name Description
ListTasksRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<ListTasksResponse>

The call object.

ListTasksAsync(ListTasksRequest, Metadata, DateTime?, CancellationToken)

Gets all Tasks that meet the specified filtering criteria.

Declaration
public virtual AsyncUnaryCall<ListTasksResponse> ListTasksAsync(ListTasksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ListTasksRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<ListTasksResponse>

The call object.

NewInstance(ClientBaseConfiguration)

Creates a new instance of client from given ClientBaseConfiguration.

Declaration
protected override DeliveryService.DeliveryServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type Name Description
ClientBase.ClientBaseConfiguration configuration
Returns
Type Description
DeliveryService.DeliveryServiceClient
Overrides
Grpc.Core.ClientBase<Google.Maps.FleetEngine.Delivery.V1.DeliveryService.DeliveryServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateDeliveryVehicle(UpdateDeliveryVehicleRequest, CallOptions)

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, but it must contain all of the VehicleJourneySegments to be persisted on the DeliveryVehicle. The task_ids 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 DeliveryVehicle UpdateDeliveryVehicle(UpdateDeliveryVehicleRequest request, CallOptions options)
Parameters
Type Name Description
UpdateDeliveryVehicleRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
DeliveryVehicle

The response received from the server.

UpdateDeliveryVehicle(UpdateDeliveryVehicleRequest, Metadata, DateTime?, CancellationToken)

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, but it must contain all of the VehicleJourneySegments to be persisted on the DeliveryVehicle. The task_ids 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 DeliveryVehicle UpdateDeliveryVehicle(UpdateDeliveryVehicleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateDeliveryVehicleRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
DeliveryVehicle

The response received from the server.

UpdateDeliveryVehicleAsync(UpdateDeliveryVehicleRequest, CallOptions)

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, but it must contain all of the VehicleJourneySegments to be persisted on the DeliveryVehicle. The task_ids 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 AsyncUnaryCall<DeliveryVehicle> UpdateDeliveryVehicleAsync(UpdateDeliveryVehicleRequest request, CallOptions options)
Parameters
Type Name Description
UpdateDeliveryVehicleRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<DeliveryVehicle>

The call object.

UpdateDeliveryVehicleAsync(UpdateDeliveryVehicleRequest, Metadata, DateTime?, CancellationToken)

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, but it must contain all of the VehicleJourneySegments to be persisted on the DeliveryVehicle. The task_ids 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 AsyncUnaryCall<DeliveryVehicle> UpdateDeliveryVehicleAsync(UpdateDeliveryVehicleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateDeliveryVehicleRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<DeliveryVehicle>

The call object.

UpdateTask(UpdateTaskRequest, CallOptions)

Updates Task data.

Declaration
public virtual Task UpdateTask(UpdateTaskRequest request, CallOptions options)
Parameters
Type Name Description
UpdateTaskRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
Task

The response received from the server.

UpdateTask(UpdateTaskRequest, Metadata, DateTime?, CancellationToken)

Updates Task data.

Declaration
public virtual Task UpdateTask(UpdateTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateTaskRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
Task

The response received from the server.

UpdateTaskAsync(UpdateTaskRequest, CallOptions)

Updates Task data.

Declaration
public virtual AsyncUnaryCall<Task> UpdateTaskAsync(UpdateTaskRequest request, CallOptions options)
Parameters
Type Name Description
UpdateTaskRequest request

The request to send to the server.

CallOptions options

The options for the call.

Returns
Type Description
AsyncUnaryCall<Task>

The call object.

UpdateTaskAsync(UpdateTaskRequest, Metadata, DateTime?, CancellationToken)

Updates Task data.

Declaration
public virtual AsyncUnaryCall<Task> UpdateTaskAsync(UpdateTaskRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
UpdateTaskRequest request

The request to send to the server.

Metadata headers

The initial metadata to send with the call. This parameter is optional.

DateTime? deadline

An optional deadline for the call. The call will be cancelled if deadline is hit.

CancellationToken cancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCall<Task>

The call object.

In this article
Back to top Generated by DocFX