public static final class AutoscalingSettings.Builder extends GeneratedMessage.Builder<AutoscalingSettings.Builder> implements AutoscalingSettingsOrBuilderSettings for WorkerPool autoscaling.
Protobuf type google.dataflow.v1beta3.AutoscalingSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AutoscalingSettings.BuilderImplements
AutoscalingSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AutoscalingSettings build()| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings |
|
buildPartial()
public AutoscalingSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings |
|
clear()
public AutoscalingSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
|
clearAlgorithm()
public AutoscalingSettings.Builder clearAlgorithm()The algorithm to use for autoscaling.
.google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1;
| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
This builder for chaining. |
clearMaxNumWorkers()
public AutoscalingSettings.Builder clearMaxNumWorkers()The maximum number of workers to cap scaling at.
int32 max_num_workers = 2;
| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
This builder for chaining. |
getAlgorithm()
public AutoscalingAlgorithm getAlgorithm()The algorithm to use for autoscaling.
.google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1;
| Returns | |
|---|---|
| Type | Description |
AutoscalingAlgorithm |
The algorithm. |
getAlgorithmValue()
public int getAlgorithmValue()The algorithm to use for autoscaling.
.google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for algorithm. |
getDefaultInstanceForType()
public AutoscalingSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMaxNumWorkers()
public int getMaxNumWorkers()The maximum number of workers to cap scaling at.
int32 max_num_workers = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The maxNumWorkers. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AutoscalingSettings other)
public AutoscalingSettings.Builder mergeFrom(AutoscalingSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
AutoscalingSettings |
| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutoscalingSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AutoscalingSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
|
setAlgorithm(AutoscalingAlgorithm value)
public AutoscalingSettings.Builder setAlgorithm(AutoscalingAlgorithm value)The algorithm to use for autoscaling.
.google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
AutoscalingAlgorithmThe algorithm to set. |
| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
This builder for chaining. |
setAlgorithmValue(int value)
public AutoscalingSettings.Builder setAlgorithmValue(int value)The algorithm to use for autoscaling.
.google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for algorithm to set. |
| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
This builder for chaining. |
setMaxNumWorkers(int value)
public AutoscalingSettings.Builder setMaxNumWorkers(int value)The maximum number of workers to cap scaling at.
int32 max_num_workers = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe maxNumWorkers to set. |
| Returns | |
|---|---|
| Type | Description |
AutoscalingSettings.Builder |
This builder for chaining. |