# Interface Task.InfrastructureSpec.BatchComputeResourcesOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.dataplex.v1.Task.InfrastructureSpec.BatchComputeResourcesOrBuilder)

    public static interface Task.InfrastructureSpec.BatchComputeResourcesOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getExecutorsCount()

    public abstract int getExecutorsCount()

Optional. Total number of job executors.
Executor Count should be between 2 and 100. \[Default=2\]

`int32 executors_count = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The executorsCount. |

### getMaxExecutorsCount()

    public abstract int getMaxExecutorsCount()

Optional. Max configurable executors.
If max_executors_count \> executors_count, then auto-scaling is enabled.
Max Executor Count should be between 2 and 1000. \[Default=1000\]

`int32 max_executors_count = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The maxExecutorsCount. |