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
Returns
Overrides
build()
public BasicAutoscalingAlgorithm build()
Returns
buildPartial()
public BasicAutoscalingAlgorithm buildPartial()
Returns
clear()
public BasicAutoscalingAlgorithm.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public BasicAutoscalingAlgorithm.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BasicAutoscalingAlgorithm.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearYarnConfig()
public BasicAutoscalingAlgorithm.Builder clearYarnConfig()
Required. YARN autoscaling configuration.
.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public BasicAutoscalingAlgorithm.Builder clone()
Returns
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
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
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
getDefaultInstanceForType()
public BasicAutoscalingAlgorithm getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getYarnConfig()
public BasicYarnAutoscalingConfig getYarnConfig()
Required. YARN autoscaling configuration.
.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getYarnConfigBuilder()
public BasicYarnAutoscalingConfig.Builder getYarnConfigBuilder()
Required. YARN autoscaling configuration.
.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getYarnConfigOrBuilder()
public BasicYarnAutoscalingConfigOrBuilder getYarnConfigOrBuilder()
Required. YARN autoscaling configuration.
.google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(BasicAutoscalingAlgorithm other)
public BasicAutoscalingAlgorithm.Builder mergeFrom(BasicAutoscalingAlgorithm other)
Parameter
Returns
public BasicAutoscalingAlgorithm.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BasicAutoscalingAlgorithm.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BasicAutoscalingAlgorithm.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public BasicAutoscalingAlgorithm.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BasicAutoscalingAlgorithm.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final BasicAutoscalingAlgorithm.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns