Class BasicAutoscalingAlgorithm.Builder (4.39.0)

public static final class BasicAutoscalingAlgorithm.Builder extends GeneratedMessageV3.Builder<BasicAutoscalingAlgorithm.Builder> implements BasicAutoscalingAlgorithmOrBuilder

Basic algorithm for autoscaling.

Protobuf type google.cloud.dataproc.v1.BasicAutoscalingAlgorithm

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BasicAutoscalingAlgorithm.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

build()

public BasicAutoscalingAlgorithm build()
Returns
Type Description
BasicAutoscalingAlgorithm

buildPartial()

public BasicAutoscalingAlgorithm buildPartial()
Returns
Type Description
BasicAutoscalingAlgorithm

clear()

public BasicAutoscalingAlgorithm.Builder clear()
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

clearConfig()

public BasicAutoscalingAlgorithm.Builder clearConfig()
Returns
Type Description
BasicAutoscalingAlgorithm.Builder

clearCooldownPeriod()

public BasicAutoscalingAlgorithm.Builder clearCooldownPeriod()

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
Type Description
BasicAutoscalingAlgorithm.Builder

clearField(Descriptors.FieldDescriptor field)

public BasicAutoscalingAlgorithm.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BasicAutoscalingAlgorithm.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

clearYarnConfig()

public BasicAutoscalingAlgorithm.Builder clearYarnConfig()

Required. YARN autoscaling configuration.

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

Returns
Type Description
BasicAutoscalingAlgorithm.Builder

clone()

public BasicAutoscalingAlgorithm.Builder clone()
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

getConfigCase()

public BasicAutoscalingAlgorithm.ConfigCase getConfigCase()
Returns
Type Description
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
Type Description
Duration

The cooldownPeriod.

getCooldownPeriodBuilder()

public Duration.Builder getCooldownPeriodBuilder()

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
Type Description
Builder

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
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public BasicAutoscalingAlgorithm getDefaultInstanceForType()
Returns
Type Description
BasicAutoscalingAlgorithm

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getYarnConfig()

public BasicYarnAutoscalingConfig getYarnConfig()

Required. YARN autoscaling configuration.

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

Returns
Type Description
BasicYarnAutoscalingConfig

The yarnConfig.

getYarnConfigBuilder()

public BasicYarnAutoscalingConfig.Builder getYarnConfigBuilder()

Required. YARN autoscaling configuration.

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

Returns
Type Description
BasicYarnAutoscalingConfig.Builder

getYarnConfigOrBuilder()

public BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder()

Required. YARN autoscaling configuration.

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

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the yarnConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCooldownPeriod(Duration value)

public BasicAutoscalingAlgorithm.Builder mergeCooldownPeriod(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
BasicAutoscalingAlgorithm.Builder

mergeFrom(BasicAutoscalingAlgorithm other)

public BasicAutoscalingAlgorithm.Builder mergeFrom(BasicAutoscalingAlgorithm other)
Parameter
Name Description
other BasicAutoscalingAlgorithm
Returns
Type Description
BasicAutoscalingAlgorithm.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BasicAutoscalingAlgorithm.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public BasicAutoscalingAlgorithm.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BasicAutoscalingAlgorithm.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

mergeYarnConfig(BasicYarnAutoscalingConfig value)

public BasicAutoscalingAlgorithm.Builder mergeYarnConfig(BasicYarnAutoscalingConfig value)

Required. YARN autoscaling configuration.

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

Parameter
Name Description
value BasicYarnAutoscalingConfig
Returns
Type Description
BasicAutoscalingAlgorithm.Builder

setCooldownPeriod(Duration value)

public BasicAutoscalingAlgorithm.Builder setCooldownPeriod(Duration value)

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];

Parameter
Name Description
value Duration
Returns
Type Description
BasicAutoscalingAlgorithm.Builder

setCooldownPeriod(Duration.Builder builderForValue)

public BasicAutoscalingAlgorithm.Builder setCooldownPeriod(Duration.Builder builderForValue)

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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BasicAutoscalingAlgorithm.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BasicAutoscalingAlgorithm.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BasicAutoscalingAlgorithm.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BasicAutoscalingAlgorithm.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BasicAutoscalingAlgorithm.Builder
Overrides

setYarnConfig(BasicYarnAutoscalingConfig value)

public BasicAutoscalingAlgorithm.Builder setYarnConfig(BasicYarnAutoscalingConfig value)

Required. YARN autoscaling configuration.

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

Parameter
Name Description
value BasicYarnAutoscalingConfig
Returns
Type Description
BasicAutoscalingAlgorithm.Builder

setYarnConfig(BasicYarnAutoscalingConfig.Builder builderForValue)

public BasicAutoscalingAlgorithm.Builder setYarnConfig(BasicYarnAutoscalingConfig.Builder builderForValue)

Required. YARN autoscaling configuration.

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

Parameter
Name Description
builderForValue BasicYarnAutoscalingConfig.Builder
Returns
Type Description
BasicAutoscalingAlgorithm.Builder