Class BasicAutoscalingAlgorithm.Builder

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

Basic algorithm for autoscaling.

Protobuf type google.cloud.dataproc.v1.BasicAutoscalingAlgorithm

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BasicAutoscalingAlgorithm.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder
Overrides

build()

public BasicAutoscalingAlgorithm build()
Returns
TypeDescription
BasicAutoscalingAlgorithm

buildPartial()

public BasicAutoscalingAlgorithm buildPartial()
Returns
TypeDescription
BasicAutoscalingAlgorithm

clear()

public BasicAutoscalingAlgorithm.Builder clear()
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder
Overrides

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
TypeDescription
BasicAutoscalingAlgorithm.Builder

clearField(Descriptors.FieldDescriptor field)

public BasicAutoscalingAlgorithm.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BasicAutoscalingAlgorithm.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BasicAutoscalingAlgorithm.Builder

clone()

public BasicAutoscalingAlgorithm.Builder clone()
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder
Overrides

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.

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
TypeDescription
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
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public BasicAutoscalingAlgorithm getDefaultInstanceForType()
Returns
TypeDescription
BasicAutoscalingAlgorithm

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

getYarnConfigBuilder()

public BasicYarnAutoscalingConfig.Builder getYarnConfigBuilder()

Required. YARN autoscaling configuration.

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

Returns
TypeDescription
BasicYarnAutoscalingConfig.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder

mergeFrom(BasicAutoscalingAlgorithm other)

public BasicAutoscalingAlgorithm.Builder mergeFrom(BasicAutoscalingAlgorithm other)
Parameter
NameDescription
otherBasicAutoscalingAlgorithm
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BasicAutoscalingAlgorithm.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BasicAutoscalingAlgorithm.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BasicAutoscalingAlgorithm.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBasicYarnAutoscalingConfig
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BasicAutoscalingAlgorithm.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder
Overrides

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

public BasicAutoscalingAlgorithm.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BasicAutoscalingAlgorithm.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueBasicYarnAutoscalingConfig
Returns
TypeDescription
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
NameDescription
builderForValueBasicYarnAutoscalingConfig.Builder
Returns
TypeDescription
BasicAutoscalingAlgorithm.Builder