Class BasicAutoscalingAlgorithm.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<BasicAutoscalingAlgorithm.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<BasicAutoscalingAlgorithm.Builder>
      • getDefaultInstanceForType

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

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

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

        public BasicAutoscalingAlgorithm.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BasicAutoscalingAlgorithm.Builder>
      • isInitialized

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

        public BasicAutoscalingAlgorithm.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<BasicAutoscalingAlgorithm.Builder>
        Throws:
        IOException
      • hasYarnConfig

        public boolean hasYarnConfig()
         Required. YARN autoscaling configuration.
         
        .google.cloud.dataproc.v1.BasicYarnAutoscalingConfig yarn_config = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasYarnConfig in interface BasicAutoscalingAlgorithmOrBuilder
        Returns:
        Whether the yarnConfig field is set.
      • clearYarnConfig

        public BasicAutoscalingAlgorithm.Builder clearYarnConfig()
         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];
      • 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];
        Specified by:
        hasCooldownPeriod in interface BasicAutoscalingAlgorithmOrBuilder
        Returns:
        Whether the cooldownPeriod field is set.
      • getCooldownPeriod

        public com.google.protobuf.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];
        Specified by:
        getCooldownPeriod in interface BasicAutoscalingAlgorithmOrBuilder
        Returns:
        The cooldownPeriod.
      • setCooldownPeriod

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

        public BasicAutoscalingAlgorithm.Builder setCooldownPeriod​(com.google.protobuf.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];
      • mergeCooldownPeriod

        public BasicAutoscalingAlgorithm.Builder mergeCooldownPeriod​(com.google.protobuf.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];
      • 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];
      • getCooldownPeriodBuilder

        public com.google.protobuf.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 com.google.protobuf.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];
        Specified by:
        getCooldownPeriodOrBuilder in interface BasicAutoscalingAlgorithmOrBuilder
      • setUnknownFields

        public final BasicAutoscalingAlgorithm.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<BasicAutoscalingAlgorithm.Builder>
      • mergeUnknownFields

        public final BasicAutoscalingAlgorithm.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<BasicAutoscalingAlgorithm.Builder>