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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ header |
DeliveryRequestHeader
Optional. The standard Delivery API request header. Note: If you set this field, then the header field in the |
↳ parent |
string
Required. The parent resource shared by all tasks. This value must be in the format |
↳ requests |
array<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 |
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 |
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<CreateTaskRequest>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|