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

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

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

        public AutoscalingPolicyScaleInControl 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<AutoscalingPolicyScaleInControl.Builder>
      • hasMaxScaledInReplicas

        public boolean hasMaxScaledInReplicas()
         Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
         
        optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
        Specified by:
        hasMaxScaledInReplicas in interface AutoscalingPolicyScaleInControlOrBuilder
        Returns:
        Whether the maxScaledInReplicas field is set.
      • getMaxScaledInReplicas

        public FixedOrPercent getMaxScaledInReplicas()
         Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
         
        optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
        Specified by:
        getMaxScaledInReplicas in interface AutoscalingPolicyScaleInControlOrBuilder
        Returns:
        The maxScaledInReplicas.
      • setMaxScaledInReplicas

        public AutoscalingPolicyScaleInControl.Builder setMaxScaledInReplicas​(FixedOrPercent value)
         Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
         
        optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
      • setMaxScaledInReplicas

        public AutoscalingPolicyScaleInControl.Builder setMaxScaledInReplicas​(FixedOrPercent.Builder builderForValue)
         Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
         
        optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
      • mergeMaxScaledInReplicas

        public AutoscalingPolicyScaleInControl.Builder mergeMaxScaledInReplicas​(FixedOrPercent value)
         Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
         
        optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
      • clearMaxScaledInReplicas

        public AutoscalingPolicyScaleInControl.Builder clearMaxScaledInReplicas()
         Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
         
        optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
      • getMaxScaledInReplicasBuilder

        public FixedOrPercent.Builder getMaxScaledInReplicasBuilder()
         Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
         
        optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
      • getMaxScaledInReplicasOrBuilder

        public FixedOrPercentOrBuilder getMaxScaledInReplicasOrBuilder()
         Maximum allowed number (or %) of VMs that can be deducted from the peak recommendation during the window autoscaler looks at when computing recommendations. Possibly all these VMs can be deleted at once so user service needs to be prepared to lose that many VMs in one step.
         
        optional .google.cloud.compute.v1.FixedOrPercent max_scaled_in_replicas = 180710123;
        Specified by:
        getMaxScaledInReplicasOrBuilder in interface AutoscalingPolicyScaleInControlOrBuilder
      • hasTimeWindowSec

        public boolean hasTimeWindowSec()
         How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
         
        optional int32 time_window_sec = 36405300;
        Specified by:
        hasTimeWindowSec in interface AutoscalingPolicyScaleInControlOrBuilder
        Returns:
        Whether the timeWindowSec field is set.
      • getTimeWindowSec

        public int getTimeWindowSec()
         How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
         
        optional int32 time_window_sec = 36405300;
        Specified by:
        getTimeWindowSec in interface AutoscalingPolicyScaleInControlOrBuilder
        Returns:
        The timeWindowSec.
      • setTimeWindowSec

        public AutoscalingPolicyScaleInControl.Builder setTimeWindowSec​(int value)
         How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
         
        optional int32 time_window_sec = 36405300;
        Parameters:
        value - The timeWindowSec to set.
        Returns:
        This builder for chaining.
      • clearTimeWindowSec

        public AutoscalingPolicyScaleInControl.Builder clearTimeWindowSec()
         How far back autoscaling looks when computing recommendations to include directives regarding slower scale in, as described above.
         
        optional int32 time_window_sec = 36405300;
        Returns:
        This builder for chaining.