Send feedback
Class BasicAutoscalingAlgorithm.Builder (3.1.2)
Stay organized with collections
Save and categorize content based on your preferences.
Version 3.1.2 keyboard_arrow_down
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
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]