public static final class BasicAutoscalingAlgorithm.Builder extends GeneratedMessageV3.Builder<BasicAutoscalingAlgorithm.Builder> implements BasicAutoscalingAlgorithmOrBuilder
Basic algorithm for autoscaling.
Protobuf type google.cloud.dataproc.v1.BasicAutoscalingAlgorithm
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BasicAutoscalingAlgorithm.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BasicAutoscalingAlgorithm build()
buildPartial()
public BasicAutoscalingAlgorithm buildPartial()
clear()
public BasicAutoscalingAlgorithm.Builder clear()
Overrides
clearConfig()
public BasicAutoscalingAlgorithm.Builder clearConfig()
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];
clearField(Descriptors.FieldDescriptor field)
public BasicAutoscalingAlgorithm.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BasicAutoscalingAlgorithm.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearYarnConfig()
public BasicAutoscalingAlgorithm.Builder clearYarnConfig()
Required. YARN autoscaling configuration.
.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public BasicAutoscalingAlgorithm.Builder clone()
Overrides
getConfigCase()
public BasicAutoscalingAlgorithm.ConfigCase getConfigCase()
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];
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];
getDefaultInstanceForType()
public BasicAutoscalingAlgorithm getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getYarnConfig()
public BasicYarnAutoscalingConfig getYarnConfig()
Required. YARN autoscaling configuration.
.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
getYarnConfigBuilder()
public BasicYarnAutoscalingConfig.Builder getYarnConfigBuilder()
Required. YARN autoscaling configuration.
.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
getYarnConfigOrBuilder()
public BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder()
Required. YARN autoscaling configuration.
.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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
|
mergeFrom(BasicAutoscalingAlgorithm other)
public BasicAutoscalingAlgorithm.Builder mergeFrom(BasicAutoscalingAlgorithm other)
public BasicAutoscalingAlgorithm.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BasicAutoscalingAlgorithm.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BasicAutoscalingAlgorithm.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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
|
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public BasicAutoscalingAlgorithm.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BasicAutoscalingAlgorithm.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BasicAutoscalingAlgorithm.Builder setUnknownFields(UnknownFieldSet unknownFields)
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];
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];