Class BasicAutoscalingAlgorithm (4.17.0)

public final class BasicAutoscalingAlgorithm extends GeneratedMessageV3 implements BasicAutoscalingAlgorithmOrBuilder

Basic algorithm for autoscaling.

Protobuf type google.cloud.dataproc.v1.BasicAutoscalingAlgorithm

Static Fields

COOLDOWN_PERIOD_FIELD_NUMBER

public static final int COOLDOWN_PERIOD_FIELD_NUMBER
Field Value
TypeDescription
int

YARN_CONFIG_FIELD_NUMBER

public static final int YARN_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BasicAutoscalingAlgorithm getDefaultInstance()
Returns
TypeDescription
BasicAutoscalingAlgorithm

getDescriptor()

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

newBuilder()

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

newBuilder(BasicAutoscalingAlgorithm prototype)

public static BasicAutoscalingAlgorithm.Builder newBuilder(BasicAutoscalingAlgorithm prototype)
Parameter
NameDescription
prototypeBasicAutoscalingAlgorithm
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConfigCase()

public BasicAutoscalingAlgorithm.ConfigCase getConfigCase()
Returns
TypeDescription
BasicAutoscalingAlgorithm.ConfigCase

getCooldownPeriod()

public Duration getCooldownPeriod()

Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed.

Bounds: [2m, 1d]. Default: 2m.

.google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Duration

The cooldownPeriod.

getCooldownPeriodOrBuilder()

public DurationOrBuilder getCooldownPeriodOrBuilder()

Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed.

Bounds: [2m, 1d]. Default: 2m.

.google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public BasicAutoscalingAlgorithm getDefaultInstanceForType()
Returns
TypeDescription
BasicAutoscalingAlgorithm

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getYarnConfig()

public BasicYarnAutoscalingConfig getYarnConfig()

Required. YARN autoscaling configuration.

.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BasicYarnAutoscalingConfig

The yarnConfig.

getYarnConfigOrBuilder()

public BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder()

Required. YARN autoscaling configuration.

.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BasicYarnAutoscalingConfigOrBuilder

hasCooldownPeriod()

public boolean hasCooldownPeriod()

Optional. Duration between scaling events. A scaling period starts after the update operation from the previous event has completed.

Bounds: [2m, 1d]. Default: 2m.

.google.protobuf.Duration cooldown_period = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the cooldownPeriod field is set.

hasYarnConfig()

public boolean hasYarnConfig()

Required. YARN autoscaling configuration.

.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the yarnConfig field is set.

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 BasicAutoscalingAlgorithm.Builder newBuilderForType()
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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