# Enum AutoscalingAlgorithm (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.dataflow.v1beta3.AutoscalingAlgorithm)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.dataflow.v1beta3.AutoscalingAlgorithm)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.dataflow.v1beta3.AutoscalingAlgorithm)

    public enum AutoscalingAlgorithm extends Enum<AutoscalingAlgorithm> implements ProtocolMessageEnum

Specifies the algorithm used to determine the number of worker
processes to run at any given point in time, based on the amount of
data left to process, the number of workers, and how quickly
existing workers are processing data.

Protobuf enum `google.events.cloud.dataflow.v1beta3.AutoscalingAlgorithm`

## Implements

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

## Inherited Members

[Enum.\<T\>valueOf(Class\<T\>,String)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf-java.lang.Class-java.lang.String-) [Enum.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#clone--) [Enum.compareTo(E)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#compareTo-E-) [Enum.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#equals-java.lang.Object-) [Enum.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#finalize--) [Enum.getDeclaringClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#getDeclaringClass--) [Enum.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#hashCode--) [Enum.name()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#name--) [Enum.ordinal()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#ordinal--) [Enum.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#toString--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

| ## Static Fields ||
|---|---|
| **Name** | **Description** |
| `AUTOSCALING_ALGORITHM_BASIC` | Increase worker count over time to reduce job execution time. `AUTOSCALING_ALGORITHM_BASIC = 2;` |
| `AUTOSCALING_ALGORITHM_BASIC_VALUE` | Increase worker count over time to reduce job execution time. `AUTOSCALING_ALGORITHM_BASIC = 2;` |
| `AUTOSCALING_ALGORITHM_NONE` | Disable autoscaling. `AUTOSCALING_ALGORITHM_NONE = 1;` |
| `AUTOSCALING_ALGORITHM_NONE_VALUE` | Disable autoscaling. `AUTOSCALING_ALGORITHM_NONE = 1;` |
| `AUTOSCALING_ALGORITHM_UNKNOWN` | The algorithm is unknown, or unspecified. `AUTOSCALING_ALGORITHM_UNKNOWN = 0;` |
| `AUTOSCALING_ALGORITHM_UNKNOWN_VALUE` | The algorithm is unknown, or unspecified. `AUTOSCALING_ALGORITHM_UNKNOWN = 0;` |
| `UNRECOGNIZED` |   |

| ## Static Methods ||
|---|---|
| **Name** | **Description** |
| `forNumber(int value)` |   |
| `getDescriptor()` |   |
| `internalGetValueMap()` |   |
| `valueOf(Descriptors.EnumValueDescriptor desc)` |   |
| `valueOf(int value)` | **Deprecated.** *Use [#forNumber(int)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.dataflow.v1beta3.AutoscalingAlgorithm#com_google_events_cloud_dataflow_v1beta3_AutoscalingAlgorithm_forNumber_int_) instead.* |
| `valueOf(String name)` |   |
| `values()` |   |

| ## Methods ||
|---|---|
| **Name** | **Description** |
| `getDescriptorForType()` |   |
| `getNumber()` |   |
| `getValueDescriptor()` |   |