Class AutoscalingSettings (0.36.0)

public final class AutoscalingSettings extends GeneratedMessageV3 implements AutoscalingSettingsOrBuilder

Settings for WorkerPool autoscaling.

Protobuf type google.dataflow.v1beta3.AutoscalingSettings

Static Fields

ALGORITHM_FIELD_NUMBER

public static final int ALGORITHM_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_NUM_WORKERS_FIELD_NUMBER

public static final int MAX_NUM_WORKERS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AutoscalingSettings getDefaultInstance()
Returns
TypeDescription
AutoscalingSettings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AutoscalingSettings.Builder newBuilder()
Returns
TypeDescription
AutoscalingSettings.Builder

newBuilder(AutoscalingSettings prototype)

public static AutoscalingSettings.Builder newBuilder(AutoscalingSettings prototype)
Parameter
NameDescription
prototypeAutoscalingSettings
Returns
TypeDescription
AutoscalingSettings.Builder

parseDelimitedFrom(InputStream input)

public static AutoscalingSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AutoscalingSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutoscalingSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutoscalingSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AutoscalingSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AutoscalingSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutoscalingSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutoscalingSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AutoscalingSettings> parser()
Returns
TypeDescription
Parser<AutoscalingSettings>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAlgorithm()

public AutoscalingAlgorithm getAlgorithm()

The algorithm to use for autoscaling.

.google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1;

Returns
TypeDescription
AutoscalingAlgorithm

The algorithm.

getAlgorithmValue()

public int getAlgorithmValue()

The algorithm to use for autoscaling.

.google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for algorithm.

getDefaultInstanceForType()

public AutoscalingSettings getDefaultInstanceForType()
Returns
TypeDescription
AutoscalingSettings

getMaxNumWorkers()

public int getMaxNumWorkers()

The maximum number of workers to cap scaling at.

int32 max_num_workers = 2;

Returns
TypeDescription
int

The maxNumWorkers.

getParserForType()

public Parser<AutoscalingSettings> getParserForType()
Returns
TypeDescription
Parser<AutoscalingSettings>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AutoscalingSettings.Builder newBuilderForType()
Returns
TypeDescription
AutoscalingSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutoscalingSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AutoscalingSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AutoscalingSettings.Builder toBuilder()
Returns
TypeDescription
AutoscalingSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException