public static final class BasicYarnAutoscalingConfig.Builder extends GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder> implements BasicYarnAutoscalingConfigOrBuilder
Basic autoscaling configurations for YARN.Protobuf type
google.cloud.dataproc.v1.BasicYarnAutoscalingConfig
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public BasicYarnAutoscalingConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public BasicYarnAutoscalingConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public BasicYarnAutoscalingConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder mergeFrom(BasicYarnAutoscalingConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public BasicYarnAutoscalingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<BasicYarnAutoscalingConfig.Builder>
IOException
public boolean hasGracefulDecommissionTimeout()
Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
hasGracefulDecommissionTimeout
in interface BasicYarnAutoscalingConfigOrBuilder
public Duration getGracefulDecommissionTimeout()
Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
getGracefulDecommissionTimeout
in interface BasicYarnAutoscalingConfigOrBuilder
public BasicYarnAutoscalingConfig.Builder setGracefulDecommissionTimeout(Duration value)
Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
public BasicYarnAutoscalingConfig.Builder setGracefulDecommissionTimeout(Duration.Builder builderForValue)
Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
public BasicYarnAutoscalingConfig.Builder mergeGracefulDecommissionTimeout(Duration value)
Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
public BasicYarnAutoscalingConfig.Builder clearGracefulDecommissionTimeout()
Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
public Duration.Builder getGracefulDecommissionTimeoutBuilder()
Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
public DurationOrBuilder getGracefulDecommissionTimeoutOrBuilder()
Required. Timeout for YARN graceful decommissioning of Node Managers. Specifies the duration to wait for jobs to complete before forcefully removing workers (and potentially interrupting jobs). Only applicable to downscaling operations. Bounds: [0s, 1d].
.google.protobuf.Duration graceful_decommission_timeout = 5 [(.google.api.field_behavior) = REQUIRED];
getGracefulDecommissionTimeoutOrBuilder
in interface BasicYarnAutoscalingConfigOrBuilder
public double getScaleUpFactor()
Required. Fraction of average YARN pending memory in the last cooldown period for which to add workers. A scale-up factor of 1.0 will result in scaling up so that there is no pending memory remaining after the update (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling). See [How autoscaling works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information. Bounds: [0.0, 1.0].
double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED];
getScaleUpFactor
in interface BasicYarnAutoscalingConfigOrBuilder
public BasicYarnAutoscalingConfig.Builder setScaleUpFactor(double value)
Required. Fraction of average YARN pending memory in the last cooldown period for which to add workers. A scale-up factor of 1.0 will result in scaling up so that there is no pending memory remaining after the update (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling). See [How autoscaling works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information. Bounds: [0.0, 1.0].
double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED];
value
- The scaleUpFactor to set.public BasicYarnAutoscalingConfig.Builder clearScaleUpFactor()
Required. Fraction of average YARN pending memory in the last cooldown period for which to add workers. A scale-up factor of 1.0 will result in scaling up so that there is no pending memory remaining after the update (more aggressive scaling). A scale-up factor closer to 0 will result in a smaller magnitude of scaling up (less aggressive scaling). See [How autoscaling works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information. Bounds: [0.0, 1.0].
double scale_up_factor = 1 [(.google.api.field_behavior) = REQUIRED];
public double getScaleDownFactor()
Required. Fraction of average YARN pending memory in the last cooldown period for which to remove workers. A scale-down factor of 1 will result in scaling down so that there is no available memory remaining after the update (more aggressive scaling). A scale-down factor of 0 disables removing workers, which can be beneficial for autoscaling a single job. See [How autoscaling works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information. Bounds: [0.0, 1.0].
double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED];
getScaleDownFactor
in interface BasicYarnAutoscalingConfigOrBuilder
public BasicYarnAutoscalingConfig.Builder setScaleDownFactor(double value)
Required. Fraction of average YARN pending memory in the last cooldown period for which to remove workers. A scale-down factor of 1 will result in scaling down so that there is no available memory remaining after the update (more aggressive scaling). A scale-down factor of 0 disables removing workers, which can be beneficial for autoscaling a single job. See [How autoscaling works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information. Bounds: [0.0, 1.0].
double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED];
value
- The scaleDownFactor to set.public BasicYarnAutoscalingConfig.Builder clearScaleDownFactor()
Required. Fraction of average YARN pending memory in the last cooldown period for which to remove workers. A scale-down factor of 1 will result in scaling down so that there is no available memory remaining after the update (more aggressive scaling). A scale-down factor of 0 disables removing workers, which can be beneficial for autoscaling a single job. See [How autoscaling works](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/autoscaling#how_autoscaling_works) for more information. Bounds: [0.0, 1.0].
double scale_down_factor = 2 [(.google.api.field_behavior) = REQUIRED];
public double getScaleUpMinWorkerFraction()
Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change. Bounds: [0.0, 1.0]. Default: 0.0.
double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL];
getScaleUpMinWorkerFraction
in interface BasicYarnAutoscalingConfigOrBuilder
public BasicYarnAutoscalingConfig.Builder setScaleUpMinWorkerFraction(double value)
Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change. Bounds: [0.0, 1.0]. Default: 0.0.
double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The scaleUpMinWorkerFraction to set.public BasicYarnAutoscalingConfig.Builder clearScaleUpMinWorkerFraction()
Optional. Minimum scale-up threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2-worker scale-up for the cluster to scale. A threshold of 0 means the autoscaler will scale up on any recommended change. Bounds: [0.0, 1.0]. Default: 0.0.
double scale_up_min_worker_fraction = 3 [(.google.api.field_behavior) = OPTIONAL];
public double getScaleDownMinWorkerFraction()
Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change. Bounds: [0.0, 1.0]. Default: 0.0.
double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL];
getScaleDownMinWorkerFraction
in interface BasicYarnAutoscalingConfigOrBuilder
public BasicYarnAutoscalingConfig.Builder setScaleDownMinWorkerFraction(double value)
Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change. Bounds: [0.0, 1.0]. Default: 0.0.
double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL];
value
- The scaleDownMinWorkerFraction to set.public BasicYarnAutoscalingConfig.Builder clearScaleDownMinWorkerFraction()
Optional. Minimum scale-down threshold as a fraction of total cluster size before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scale-down for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended change. Bounds: [0.0, 1.0]. Default: 0.0.
double scale_down_min_worker_fraction = 4 [(.google.api.field_behavior) = OPTIONAL];
public final BasicYarnAutoscalingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
public final BasicYarnAutoscalingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
Copyright © 2022 Google LLC. All rights reserved.