Google Maps FleetEngine Delivery V1 Client - Class BatchCreateTasksRequest (0.1.4)

Reference documentation and code samples for the Google Maps FleetEngine Delivery V1 Client class BatchCreateTasksRequest.

The BatchCreateTask request message.

Generated from protobuf message maps.fleetengine.delivery.v1.BatchCreateTasksRequest

Namespace

Google \ Maps \ FleetEngine \ Delivery \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ header Google\Maps\FleetEngine\Delivery\V1\DeliveryRequestHeader

Optional. The standard Delivery API request header. Note: If you set this field, then the header field in the CreateTaskRequest messages must either be empty, or it must match this field.

↳ parent string

Required. The parent resource shared by all tasks. This value must be in the format providers/{provider}. The provider must be the Google Cloud Project ID. For example, sample-cloud-project. The parent field in the CreateTaskRequest messages must either be empty, or it must match this field.

↳ requests array<Google\Maps\FleetEngine\Delivery\V1\CreateTaskRequest>

Required. The request message that specifies the resources to create. Note: You can create a maximum of 500 tasks in a batch.

getHeader

Optional. The standard Delivery API request header.

Note: If you set this field, then the header field in the CreateTaskRequest messages must either be empty, or it must match this field.

Returns
Type Description
Google\Maps\FleetEngine\Delivery\V1\DeliveryRequestHeader|null

hasHeader

clearHeader

setHeader

Optional. The standard Delivery API request header.

Note: If you set this field, then the header field in the CreateTaskRequest messages must either be empty, or it must match this field.

Parameter
Name Description
var Google\Maps\FleetEngine\Delivery\V1\DeliveryRequestHeader
Returns
Type Description
$this

getParent

Required. The parent resource shared by all tasks. This value must be in the format providers/{provider}. The provider must be the Google Cloud Project ID. For example, sample-cloud-project. The parent field in the CreateTaskRequest messages must either be empty, or it must match this field.

Returns
Type Description
string

setParent

Required. The parent resource shared by all tasks. This value must be in the format providers/{provider}. The provider must be the Google Cloud Project ID. For example, sample-cloud-project. The parent field in the CreateTaskRequest messages must either be empty, or it must match this field.

Parameter
Name Description
var string
Returns
Type Description
$this

getRequests

Required. The request message that specifies the resources to create.

Note: You can create a maximum of 500 tasks in a batch.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRequests

Required. The request message that specifies the resources to create.

Note: You can create a maximum of 500 tasks in a batch.

Parameter
Name Description
var array<Google\Maps\FleetEngine\Delivery\V1\CreateTaskRequest>
Returns
Type Description
$this