Class AutoscalingPolicy.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
      • internalGetFieldAccessorTable

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

        public AutoscalingPolicy.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.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<AutoscalingPolicy.Builder>
      • getDefaultInstanceForType

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

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

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

        public AutoscalingPolicy.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
      • setField

        public AutoscalingPolicy.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
      • clearField

        public AutoscalingPolicy.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
      • clearOneof

        public AutoscalingPolicy.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
      • setRepeatedField

        public AutoscalingPolicy.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<AutoscalingPolicy.Builder>
      • addRepeatedField

        public AutoscalingPolicy.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicy.Builder>
      • mergeFrom

        public AutoscalingPolicy.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutoscalingPolicy.Builder>
      • isInitialized

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

        public AutoscalingPolicy.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<AutoscalingPolicy.Builder>
        Throws:
        IOException
      • hasCoolDownPeriodSec

        public boolean hasCoolDownPeriodSec()
         The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
         
        optional int32 cool_down_period_sec = 107692954;
        Specified by:
        hasCoolDownPeriodSec in interface AutoscalingPolicyOrBuilder
        Returns:
        Whether the coolDownPeriodSec field is set.
      • getCoolDownPeriodSec

        public int getCoolDownPeriodSec()
         The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
         
        optional int32 cool_down_period_sec = 107692954;
        Specified by:
        getCoolDownPeriodSec in interface AutoscalingPolicyOrBuilder
        Returns:
        The coolDownPeriodSec.
      • setCoolDownPeriodSec

        public AutoscalingPolicy.Builder setCoolDownPeriodSec​(int value)
         The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
         
        optional int32 cool_down_period_sec = 107692954;
        Parameters:
        value - The coolDownPeriodSec to set.
        Returns:
        This builder for chaining.
      • clearCoolDownPeriodSec

        public AutoscalingPolicy.Builder clearCoolDownPeriodSec()
         The number of seconds that your application takes to initialize on a VM instance. This is referred to as the [initialization period](/compute/docs/autoscaler#cool_down_period). Specifying an accurate initialization period improves autoscaler decisions. For example, when scaling out, the autoscaler ignores data from VMs that are still initializing because those VMs might not yet represent normal usage of your application. The default initialization period is 60 seconds. Initialization periods might vary because of numerous factors. We recommend that you test how long your application takes to initialize. To do this, create a VM and time your application's startup process.
         
        optional int32 cool_down_period_sec = 107692954;
        Returns:
        This builder for chaining.
      • hasCpuUtilization

        public boolean hasCpuUtilization()
         Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
        Specified by:
        hasCpuUtilization in interface AutoscalingPolicyOrBuilder
        Returns:
        Whether the cpuUtilization field is set.
      • getCpuUtilization

        public AutoscalingPolicyCpuUtilization getCpuUtilization()
         Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
        Specified by:
        getCpuUtilization in interface AutoscalingPolicyOrBuilder
        Returns:
        The cpuUtilization.
      • setCpuUtilization

        public AutoscalingPolicy.Builder setCpuUtilization​(AutoscalingPolicyCpuUtilization value)
         Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
      • setCpuUtilization

        public AutoscalingPolicy.Builder setCpuUtilization​(AutoscalingPolicyCpuUtilization.Builder builderForValue)
         Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
      • mergeCpuUtilization

        public AutoscalingPolicy.Builder mergeCpuUtilization​(AutoscalingPolicyCpuUtilization value)
         Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
      • clearCpuUtilization

        public AutoscalingPolicy.Builder clearCpuUtilization()
         Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
      • getCpuUtilizationBuilder

        public AutoscalingPolicyCpuUtilization.Builder getCpuUtilizationBuilder()
         Defines the CPU utilization policy that allows the autoscaler to scale based on the average CPU utilization of a managed instance group.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyCpuUtilization cpu_utilization = 381211147;
      • getCustomMetricUtilizationsCount

        public int getCustomMetricUtilizationsCount()
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
        Specified by:
        getCustomMetricUtilizationsCount in interface AutoscalingPolicyOrBuilder
      • setCustomMetricUtilizations

        public AutoscalingPolicy.Builder setCustomMetricUtilizations​(int index,
                                                                     AutoscalingPolicyCustomMetricUtilization value)
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • addCustomMetricUtilizations

        public AutoscalingPolicy.Builder addCustomMetricUtilizations​(AutoscalingPolicyCustomMetricUtilization value)
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • addCustomMetricUtilizations

        public AutoscalingPolicy.Builder addCustomMetricUtilizations​(int index,
                                                                     AutoscalingPolicyCustomMetricUtilization value)
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • clearCustomMetricUtilizations

        public AutoscalingPolicy.Builder clearCustomMetricUtilizations()
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • removeCustomMetricUtilizations

        public AutoscalingPolicy.Builder removeCustomMetricUtilizations​(int index)
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • getCustomMetricUtilizationsBuilder

        public AutoscalingPolicyCustomMetricUtilization.Builder getCustomMetricUtilizationsBuilder​(int index)
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • addCustomMetricUtilizationsBuilder

        public AutoscalingPolicyCustomMetricUtilization.Builder addCustomMetricUtilizationsBuilder()
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • addCustomMetricUtilizationsBuilder

        public AutoscalingPolicyCustomMetricUtilization.Builder addCustomMetricUtilizationsBuilder​(int index)
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • getCustomMetricUtilizationsBuilderList

        public List<AutoscalingPolicyCustomMetricUtilization.Builder> getCustomMetricUtilizationsBuilderList()
         Configuration parameters of autoscaling based on a custom metric.
         
        repeated .google.cloud.compute.v1.AutoscalingPolicyCustomMetricUtilization custom_metric_utilizations = 131972850;
      • hasLoadBalancingUtilization

        public boolean hasLoadBalancingUtilization()
         Configuration parameters of autoscaling based on load balancer.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
        Specified by:
        hasLoadBalancingUtilization in interface AutoscalingPolicyOrBuilder
        Returns:
        Whether the loadBalancingUtilization field is set.
      • clearLoadBalancingUtilization

        public AutoscalingPolicy.Builder clearLoadBalancingUtilization()
         Configuration parameters of autoscaling based on load balancer.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
      • getLoadBalancingUtilizationBuilder

        public AutoscalingPolicyLoadBalancingUtilization.Builder getLoadBalancingUtilizationBuilder()
         Configuration parameters of autoscaling based on load balancer.
         
        optional .google.cloud.compute.v1.AutoscalingPolicyLoadBalancingUtilization load_balancing_utilization = 429746403;
      • hasMaxNumReplicas

        public boolean hasMaxNumReplicas()
         The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
         
        optional int32 max_num_replicas = 62327375;
        Specified by:
        hasMaxNumReplicas in interface AutoscalingPolicyOrBuilder
        Returns:
        Whether the maxNumReplicas field is set.
      • getMaxNumReplicas

        public int getMaxNumReplicas()
         The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
         
        optional int32 max_num_replicas = 62327375;
        Specified by:
        getMaxNumReplicas in interface AutoscalingPolicyOrBuilder
        Returns:
        The maxNumReplicas.
      • setMaxNumReplicas

        public AutoscalingPolicy.Builder setMaxNumReplicas​(int value)
         The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
         
        optional int32 max_num_replicas = 62327375;
        Parameters:
        value - The maxNumReplicas to set.
        Returns:
        This builder for chaining.
      • clearMaxNumReplicas

        public AutoscalingPolicy.Builder clearMaxNumReplicas()
         The maximum number of instances that the autoscaler can scale out to. This is required when creating or updating an autoscaler. The maximum number of replicas must not be lower than minimal number of replicas.
         
        optional int32 max_num_replicas = 62327375;
        Returns:
        This builder for chaining.
      • hasMinNumReplicas

        public boolean hasMinNumReplicas()
         The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
         
        optional int32 min_num_replicas = 535329825;
        Specified by:
        hasMinNumReplicas in interface AutoscalingPolicyOrBuilder
        Returns:
        Whether the minNumReplicas field is set.
      • getMinNumReplicas

        public int getMinNumReplicas()
         The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
         
        optional int32 min_num_replicas = 535329825;
        Specified by:
        getMinNumReplicas in interface AutoscalingPolicyOrBuilder
        Returns:
        The minNumReplicas.
      • setMinNumReplicas

        public AutoscalingPolicy.Builder setMinNumReplicas​(int value)
         The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
         
        optional int32 min_num_replicas = 535329825;
        Parameters:
        value - The minNumReplicas to set.
        Returns:
        This builder for chaining.
      • clearMinNumReplicas

        public AutoscalingPolicy.Builder clearMinNumReplicas()
         The minimum number of replicas that the autoscaler can scale in to. This cannot be less than 0. If not provided, autoscaler chooses a default value depending on maximum number of instances allowed.
         
        optional int32 min_num_replicas = 535329825;
        Returns:
        This builder for chaining.
      • hasMode

        public boolean hasMode()
         Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Specified by:
        hasMode in interface AutoscalingPolicyOrBuilder
        Returns:
        Whether the mode field is set.
      • getMode

        public String getMode()
         Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Specified by:
        getMode in interface AutoscalingPolicyOrBuilder
        Returns:
        The mode.
      • getModeBytes

        public com.google.protobuf.ByteString getModeBytes()
         Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Specified by:
        getModeBytes in interface AutoscalingPolicyOrBuilder
        Returns:
        The bytes for mode.
      • setMode

        public AutoscalingPolicy.Builder setMode​(String value)
         Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Parameters:
        value - The mode to set.
        Returns:
        This builder for chaining.
      • clearMode

        public AutoscalingPolicy.Builder clearMode()
         Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Returns:
        This builder for chaining.
      • setModeBytes

        public AutoscalingPolicy.Builder setModeBytes​(com.google.protobuf.ByteString value)
         Defines the operating mode for this policy. The following modes are available: - OFF: Disables the autoscaler but maintains its configuration. - ONLY_SCALE_OUT: Restricts the autoscaler to add VM instances only. - ON: Enables all autoscaler activities according to its policy. For more information, see "Turning off or restricting an autoscaler"
         Check the Mode enum for the list of possible values.
         
        optional string mode = 3357091;
        Parameters:
        value - The bytes for mode to set.
        Returns:
        This builder for chaining.
      • hasScaleInControl

        public boolean hasScaleInControl()
        optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
        Specified by:
        hasScaleInControl in interface AutoscalingPolicyOrBuilder
        Returns:
        Whether the scaleInControl field is set.
      • clearScaleInControl

        public AutoscalingPolicy.Builder clearScaleInControl()
        optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
      • getScaleInControlBuilder

        public AutoscalingPolicyScaleInControl.Builder getScaleInControlBuilder()
        optional .google.cloud.compute.v1.AutoscalingPolicyScaleInControl scale_in_control = 527670872;
      • getScalingSchedulesCount

        public int getScalingSchedulesCount()
        Description copied from interface: AutoscalingPolicyOrBuilder
         Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
         
        map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
        Specified by:
        getScalingSchedulesCount in interface AutoscalingPolicyOrBuilder
      • containsScalingSchedules

        public boolean containsScalingSchedules​(String key)
         Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
         
        map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
        Specified by:
        containsScalingSchedules in interface AutoscalingPolicyOrBuilder
      • getScalingSchedulesMap

        public Map<String,​AutoscalingPolicyScalingSchedule> getScalingSchedulesMap()
         Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
         
        map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
        Specified by:
        getScalingSchedulesMap in interface AutoscalingPolicyOrBuilder
      • getScalingSchedulesOrThrow

        public AutoscalingPolicyScalingSchedule getScalingSchedulesOrThrow​(String key)
         Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
         
        map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
        Specified by:
        getScalingSchedulesOrThrow in interface AutoscalingPolicyOrBuilder
      • removeScalingSchedules

        public AutoscalingPolicy.Builder removeScalingSchedules​(String key)
         Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
         
        map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
      • putScalingSchedules

        public AutoscalingPolicy.Builder putScalingSchedules​(String key,
                                                             AutoscalingPolicyScalingSchedule value)
         Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
         
        map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
      • putAllScalingSchedules

        public AutoscalingPolicy.Builder putAllScalingSchedules​(Map<String,​AutoscalingPolicyScalingSchedule> values)
         Scaling schedules defined for an autoscaler. Multiple schedules can be set on an autoscaler, and they can overlap. During overlapping periods the greatest min_required_replicas of all scaling schedules is applied. Up to 128 scaling schedules are allowed.
         
        map<string, .google.cloud.compute.v1.AutoscalingPolicyScalingSchedule> scaling_schedules = 355416580;
      • setUnknownFields

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

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