Class AutomaticScaling

  • All Implemented Interfaces:
    AutomaticScalingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class AutomaticScaling
    extends com.google.protobuf.GeneratedMessageV3
    implements AutomaticScalingOrBuilder
     Automatic scaling is based on request rate, response latencies, and other
     application metrics.
     
    Protobuf type google.appengine.v1.AutomaticScaling
    See Also:
    Serialized Form
    • Field Detail

      • COOL_DOWN_PERIOD_FIELD_NUMBER

        public static final int COOL_DOWN_PERIOD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CPU_UTILIZATION_FIELD_NUMBER

        public static final int CPU_UTILIZATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_CONCURRENT_REQUESTS_FIELD_NUMBER

        public static final int MAX_CONCURRENT_REQUESTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_IDLE_INSTANCES_FIELD_NUMBER

        public static final int MAX_IDLE_INSTANCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_TOTAL_INSTANCES_FIELD_NUMBER

        public static final int MAX_TOTAL_INSTANCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MAX_PENDING_LATENCY_FIELD_NUMBER

        public static final int MAX_PENDING_LATENCY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MIN_IDLE_INSTANCES_FIELD_NUMBER

        public static final int MIN_IDLE_INSTANCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MIN_TOTAL_INSTANCES_FIELD_NUMBER

        public static final int MIN_TOTAL_INSTANCES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MIN_PENDING_LATENCY_FIELD_NUMBER

        public static final int MIN_PENDING_LATENCY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REQUEST_UTILIZATION_FIELD_NUMBER

        public static final int REQUEST_UTILIZATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • DISK_UTILIZATION_FIELD_NUMBER

        public static final int DISK_UTILIZATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NETWORK_UTILIZATION_FIELD_NUMBER

        public static final int NETWORK_UTILIZATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STANDARD_SCHEDULER_SETTINGS_FIELD_NUMBER

        public static final int STANDARD_SCHEDULER_SETTINGS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • hasCoolDownPeriod

        public boolean hasCoolDownPeriod()
         The time period that the
         [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/)
         should wait before it starts collecting information from a new instance.
         This prevents the autoscaler from collecting information when the instance
         is initializing, during which the collected usage would not be reliable.
         Only applicable in the App Engine flexible environment.
         
        .google.protobuf.Duration cool_down_period = 1;
        Specified by:
        hasCoolDownPeriod in interface AutomaticScalingOrBuilder
        Returns:
        Whether the coolDownPeriod field is set.
      • getCoolDownPeriod

        public com.google.protobuf.Duration getCoolDownPeriod()
         The time period that the
         [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/)
         should wait before it starts collecting information from a new instance.
         This prevents the autoscaler from collecting information when the instance
         is initializing, during which the collected usage would not be reliable.
         Only applicable in the App Engine flexible environment.
         
        .google.protobuf.Duration cool_down_period = 1;
        Specified by:
        getCoolDownPeriod in interface AutomaticScalingOrBuilder
        Returns:
        The coolDownPeriod.
      • getCoolDownPeriodOrBuilder

        public com.google.protobuf.DurationOrBuilder getCoolDownPeriodOrBuilder()
         The time period that the
         [Autoscaler](https://cloud.google.com/compute/docs/autoscaler/)
         should wait before it starts collecting information from a new instance.
         This prevents the autoscaler from collecting information when the instance
         is initializing, during which the collected usage would not be reliable.
         Only applicable in the App Engine flexible environment.
         
        .google.protobuf.Duration cool_down_period = 1;
        Specified by:
        getCoolDownPeriodOrBuilder in interface AutomaticScalingOrBuilder
      • hasCpuUtilization

        public boolean hasCpuUtilization()
         Target scaling by CPU usage.
         
        .google.appengine.v1.CpuUtilization cpu_utilization = 2;
        Specified by:
        hasCpuUtilization in interface AutomaticScalingOrBuilder
        Returns:
        Whether the cpuUtilization field is set.
      • getMaxConcurrentRequests

        public int getMaxConcurrentRequests()
         Number of concurrent requests an automatic scaling instance can accept
         before the scheduler spawns a new instance.
        
         Defaults to a runtime-specific value.
         
        int32 max_concurrent_requests = 3;
        Specified by:
        getMaxConcurrentRequests in interface AutomaticScalingOrBuilder
        Returns:
        The maxConcurrentRequests.
      • getMaxIdleInstances

        public int getMaxIdleInstances()
         Maximum number of idle instances that should be maintained for this
         version.
         
        int32 max_idle_instances = 4;
        Specified by:
        getMaxIdleInstances in interface AutomaticScalingOrBuilder
        Returns:
        The maxIdleInstances.
      • getMaxTotalInstances

        public int getMaxTotalInstances()
         Maximum number of instances that should be started to handle requests for
         this version.
         
        int32 max_total_instances = 5;
        Specified by:
        getMaxTotalInstances in interface AutomaticScalingOrBuilder
        Returns:
        The maxTotalInstances.
      • hasMaxPendingLatency

        public boolean hasMaxPendingLatency()
         Maximum amount of time that a request should wait in the pending queue
         before starting a new instance to handle it.
         
        .google.protobuf.Duration max_pending_latency = 6;
        Specified by:
        hasMaxPendingLatency in interface AutomaticScalingOrBuilder
        Returns:
        Whether the maxPendingLatency field is set.
      • getMaxPendingLatency

        public com.google.protobuf.Duration getMaxPendingLatency()
         Maximum amount of time that a request should wait in the pending queue
         before starting a new instance to handle it.
         
        .google.protobuf.Duration max_pending_latency = 6;
        Specified by:
        getMaxPendingLatency in interface AutomaticScalingOrBuilder
        Returns:
        The maxPendingLatency.
      • getMaxPendingLatencyOrBuilder

        public com.google.protobuf.DurationOrBuilder getMaxPendingLatencyOrBuilder()
         Maximum amount of time that a request should wait in the pending queue
         before starting a new instance to handle it.
         
        .google.protobuf.Duration max_pending_latency = 6;
        Specified by:
        getMaxPendingLatencyOrBuilder in interface AutomaticScalingOrBuilder
      • getMinIdleInstances

        public int getMinIdleInstances()
         Minimum number of idle instances that should be maintained for
         this version. Only applicable for the default version of a service.
         
        int32 min_idle_instances = 7;
        Specified by:
        getMinIdleInstances in interface AutomaticScalingOrBuilder
        Returns:
        The minIdleInstances.
      • getMinTotalInstances

        public int getMinTotalInstances()
         Minimum number of running instances that should be maintained for this
         version.
         
        int32 min_total_instances = 8;
        Specified by:
        getMinTotalInstances in interface AutomaticScalingOrBuilder
        Returns:
        The minTotalInstances.
      • hasMinPendingLatency

        public boolean hasMinPendingLatency()
         Minimum amount of time a request should wait in the pending queue before
         starting a new instance to handle it.
         
        .google.protobuf.Duration min_pending_latency = 9;
        Specified by:
        hasMinPendingLatency in interface AutomaticScalingOrBuilder
        Returns:
        Whether the minPendingLatency field is set.
      • getMinPendingLatency

        public com.google.protobuf.Duration getMinPendingLatency()
         Minimum amount of time a request should wait in the pending queue before
         starting a new instance to handle it.
         
        .google.protobuf.Duration min_pending_latency = 9;
        Specified by:
        getMinPendingLatency in interface AutomaticScalingOrBuilder
        Returns:
        The minPendingLatency.
      • getMinPendingLatencyOrBuilder

        public com.google.protobuf.DurationOrBuilder getMinPendingLatencyOrBuilder()
         Minimum amount of time a request should wait in the pending queue before
         starting a new instance to handle it.
         
        .google.protobuf.Duration min_pending_latency = 9;
        Specified by:
        getMinPendingLatencyOrBuilder in interface AutomaticScalingOrBuilder
      • hasRequestUtilization

        public boolean hasRequestUtilization()
         Target scaling by request utilization.
         
        .google.appengine.v1.RequestUtilization request_utilization = 10;
        Specified by:
        hasRequestUtilization in interface AutomaticScalingOrBuilder
        Returns:
        Whether the requestUtilization field is set.
      • hasDiskUtilization

        public boolean hasDiskUtilization()
         Target scaling by disk usage.
         
        .google.appengine.v1.DiskUtilization disk_utilization = 11;
        Specified by:
        hasDiskUtilization in interface AutomaticScalingOrBuilder
        Returns:
        Whether the diskUtilization field is set.
      • hasNetworkUtilization

        public boolean hasNetworkUtilization()
         Target scaling by network usage.
         
        .google.appengine.v1.NetworkUtilization network_utilization = 12;
        Specified by:
        hasNetworkUtilization in interface AutomaticScalingOrBuilder
        Returns:
        Whether the networkUtilization field is set.
      • hasStandardSchedulerSettings

        public boolean hasStandardSchedulerSettings()
         Scheduler settings for standard environment.
         
        .google.appengine.v1.StandardSchedulerSettings standard_scheduler_settings = 20;
        Specified by:
        hasStandardSchedulerSettings in interface AutomaticScalingOrBuilder
        Returns:
        Whether the standardSchedulerSettings field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static AutomaticScaling parseFrom​(ByteBuffer data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AutomaticScaling parseFrom​(ByteBuffer data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AutomaticScaling parseFrom​(com.google.protobuf.ByteString data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AutomaticScaling parseFrom​(com.google.protobuf.ByteString data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AutomaticScaling parseFrom​(byte[] data)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AutomaticScaling parseFrom​(byte[] data,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static AutomaticScaling parseFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws IOException
        Throws:
        IOException
      • newBuilderForType

        public AutomaticScaling.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AutomaticScaling.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AutomaticScaling.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<AutomaticScaling> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public AutomaticScaling getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder