# Google Maps FleetEngine Delivery V1 Client - Class BatchCreateTasksRequest (0.5.3)

0.5.3 (latest) 0.5.2 0.4.1 0.3.1 0.2.0 0.1.8 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` | `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/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<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/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** |
| `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/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` | `https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.CreateTaskRequest>` |   |

### 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<https://docs.cloud.google.com/php/docs/reference/maps-fleetengine-delivery/latest/V1.CreateTaskRequest>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |