Class AutoscalingPolicyScalingSchedule

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

    public final class AutoscalingPolicyScalingSchedule
    extends com.google.protobuf.GeneratedMessageV3
    implements AutoscalingPolicyScalingScheduleOrBuilder
     Scaling based on user-defined schedule. The message describes a single scaling schedule. A scaling schedule changes the minimum number of VM instances an autoscaler can recommend, which can trigger scaling out.
     
    Protobuf type google.cloud.compute.v1.AutoscalingPolicyScalingSchedule
    See Also:
    Serialized Form
    • 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
      • hasDisabled

        public boolean hasDisabled()
         A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect. This field is optional, and its value is false by default.
         
        optional bool disabled = 270940796;
        Specified by:
        hasDisabled in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        Whether the disabled field is set.
      • getDisabled

        public boolean getDisabled()
         A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect. This field is optional, and its value is false by default.
         
        optional bool disabled = 270940796;
        Specified by:
        getDisabled in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        The disabled.
      • hasDurationSec

        public boolean hasDurationSec()
         The duration of time intervals, in seconds, for which this scaling schedule is to run. The minimum allowed value is 300. This field is required.
         
        optional int32 duration_sec = 212356902;
        Specified by:
        hasDurationSec in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        Whether the durationSec field is set.
      • getDurationSec

        public int getDurationSec()
         The duration of time intervals, in seconds, for which this scaling schedule is to run. The minimum allowed value is 300. This field is required.
         
        optional int32 duration_sec = 212356902;
        Specified by:
        getDurationSec in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        The durationSec.
      • hasMinRequiredReplicas

        public boolean hasMinRequiredReplicas()
         The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule. This field is required.
         
        optional int32 min_required_replicas = 365514414;
        Specified by:
        hasMinRequiredReplicas in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        Whether the minRequiredReplicas field is set.
      • getMinRequiredReplicas

        public int getMinRequiredReplicas()
         The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule. This field is required.
         
        optional int32 min_required_replicas = 365514414;
        Specified by:
        getMinRequiredReplicas in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        The minRequiredReplicas.
      • hasSchedule

        public boolean hasSchedule()
         The start timestamps of time intervals when this scaling schedule is to provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression can describe a single timestamp if the optional year is set, in which case the scaling schedule runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: These timestamps only describe when autoscaler starts providing the scaling signal. The VMs need additional time to become serving.
         
        optional string schedule = 375820951;
        Specified by:
        hasSchedule in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        Whether the schedule field is set.
      • getSchedule

        public String getSchedule()
         The start timestamps of time intervals when this scaling schedule is to provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression can describe a single timestamp if the optional year is set, in which case the scaling schedule runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: These timestamps only describe when autoscaler starts providing the scaling signal. The VMs need additional time to become serving.
         
        optional string schedule = 375820951;
        Specified by:
        getSchedule in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        The schedule.
      • getScheduleBytes

        public com.google.protobuf.ByteString getScheduleBytes()
         The start timestamps of time intervals when this scaling schedule is to provide a scaling signal. This field uses the extended cron format (with an optional year field). The expression can describe a single timestamp if the optional year is set, in which case the scaling schedule runs once. The schedule is interpreted with respect to time_zone. This field is required. Note: These timestamps only describe when autoscaler starts providing the scaling signal. The VMs need additional time to become serving.
         
        optional string schedule = 375820951;
        Specified by:
        getScheduleBytes in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        The bytes for schedule.
      • hasTimeZone

        public boolean hasTimeZone()
         The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of “UTC” if left empty.
         
        optional string time_zone = 36848094;
        Specified by:
        hasTimeZone in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        Whether the timeZone field is set.
      • getTimeZone

        public String getTimeZone()
         The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of “UTC” if left empty.
         
        optional string time_zone = 36848094;
        Specified by:
        getTimeZone in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        The timeZone.
      • getTimeZoneBytes

        public com.google.protobuf.ByteString getTimeZoneBytes()
         The time zone to use when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of “UTC” if left empty.
         
        optional string time_zone = 36848094;
        Specified by:
        getTimeZoneBytes in interface AutoscalingPolicyScalingScheduleOrBuilder
        Returns:
        The bytes for timeZone.
      • 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 AutoscalingPolicyScalingSchedule parseFrom​(ByteBuffer data,
                                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                          throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<AutoscalingPolicyScalingSchedule> 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 AutoscalingPolicyScalingSchedule getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder