Class BasicYarnAutoscalingConfig.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
      • getDefaultInstanceForType

        public BasicYarnAutoscalingConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public BasicYarnAutoscalingConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public BasicYarnAutoscalingConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
      • mergeFrom

        public BasicYarnAutoscalingConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<BasicYarnAutoscalingConfig.Builder>
        Throws:
        IOException
      • hasGracefulDecommissionTimeout

        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];
        Specified by:
        hasGracefulDecommissionTimeout in interface BasicYarnAutoscalingConfigOrBuilder
        Returns:
        Whether the gracefulDecommissionTimeout field is set.
      • getGracefulDecommissionTimeout

        public com.google.protobuf.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];
        Specified by:
        getGracefulDecommissionTimeout in interface BasicYarnAutoscalingConfigOrBuilder
        Returns:
        The gracefulDecommissionTimeout.
      • setGracefulDecommissionTimeout

        public BasicYarnAutoscalingConfig.Builder setGracefulDecommissionTimeout​(com.google.protobuf.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];
      • setGracefulDecommissionTimeout

        public BasicYarnAutoscalingConfig.Builder setGracefulDecommissionTimeout​(com.google.protobuf.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];
      • mergeGracefulDecommissionTimeout

        public BasicYarnAutoscalingConfig.Builder mergeGracefulDecommissionTimeout​(com.google.protobuf.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];
      • clearGracefulDecommissionTimeout

        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];
      • getGracefulDecommissionTimeoutBuilder

        public com.google.protobuf.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];
      • getGracefulDecommissionTimeoutOrBuilder

        public com.google.protobuf.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];
        Specified by:
        getGracefulDecommissionTimeoutOrBuilder in interface BasicYarnAutoscalingConfigOrBuilder
      • getScaleUpFactor

        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];
        Specified by:
        getScaleUpFactor in interface BasicYarnAutoscalingConfigOrBuilder
        Returns:
        The scaleUpFactor.
      • setScaleUpFactor

        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];
        Parameters:
        value - The scaleUpFactor to set.
        Returns:
        This builder for chaining.
      • clearScaleUpFactor

        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];
        Returns:
        This builder for chaining.
      • getScaleDownFactor

        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];
        Specified by:
        getScaleDownFactor in interface BasicYarnAutoscalingConfigOrBuilder
        Returns:
        The scaleDownFactor.
      • setScaleDownFactor

        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];
        Parameters:
        value - The scaleDownFactor to set.
        Returns:
        This builder for chaining.
      • clearScaleDownFactor

        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];
        Returns:
        This builder for chaining.
      • getScaleUpMinWorkerFraction

        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];
        Specified by:
        getScaleUpMinWorkerFraction in interface BasicYarnAutoscalingConfigOrBuilder
        Returns:
        The scaleUpMinWorkerFraction.
      • setScaleUpMinWorkerFraction

        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];
        Parameters:
        value - The scaleUpMinWorkerFraction to set.
        Returns:
        This builder for chaining.
      • clearScaleUpMinWorkerFraction

        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];
        Returns:
        This builder for chaining.
      • getScaleDownMinWorkerFraction

        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];
        Specified by:
        getScaleDownMinWorkerFraction in interface BasicYarnAutoscalingConfigOrBuilder
        Returns:
        The scaleDownMinWorkerFraction.
      • setScaleDownMinWorkerFraction

        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];
        Parameters:
        value - The scaleDownMinWorkerFraction to set.
        Returns:
        This builder for chaining.
      • clearScaleDownMinWorkerFraction

        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];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final BasicYarnAutoscalingConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>
      • mergeUnknownFields

        public final BasicYarnAutoscalingConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BasicYarnAutoscalingConfig.Builder>