Package com.google.cloud.compute.v1
Class AutoscalingPolicyScalingSchedule
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.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 typegoogle.cloud.compute.v1.AutoscalingPolicyScalingSchedule
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AutoscalingPolicyScalingSchedule.Builder
Scaling based on user-defined schedule.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
DESCRIPTION_FIELD_NUMBER
static int
DISABLED_FIELD_NUMBER
static int
DURATION_SEC_FIELD_NUMBER
static int
MIN_REQUIRED_REPLICAS_FIELD_NUMBER
static int
SCHEDULE_FIELD_NUMBER
static int
TIME_ZONE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static AutoscalingPolicyScalingSchedule
getDefaultInstance()
AutoscalingPolicyScalingSchedule
getDefaultInstanceForType()
String
getDescription()
A description of a scaling schedule.com.google.protobuf.ByteString
getDescriptionBytes()
A description of a scaling schedule.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
boolean
getDisabled()
A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations.int
getDurationSec()
The duration of time intervals, in seconds, for which this scaling schedule is to run.int
getMinRequiredReplicas()
The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule.com.google.protobuf.Parser<AutoscalingPolicyScalingSchedule>
getParserForType()
String
getSchedule()
The start timestamps of time intervals when this scaling schedule is to provide a scaling signal.com.google.protobuf.ByteString
getScheduleBytes()
The start timestamps of time intervals when this scaling schedule is to provide a scaling signal.int
getSerializedSize()
String
getTimeZone()
The time zone to use when interpreting the schedule.com.google.protobuf.ByteString
getTimeZoneBytes()
The time zone to use when interpreting the schedule.boolean
hasDescription()
A description of a scaling schedule.boolean
hasDisabled()
A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations.boolean
hasDurationSec()
The duration of time intervals, in seconds, for which this scaling schedule is to run.int
hashCode()
boolean
hasMinRequiredReplicas()
The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule.boolean
hasSchedule()
The start timestamps of time intervals when this scaling schedule is to provide a scaling signal.boolean
hasTimeZone()
The time zone to use when interpreting the schedule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static AutoscalingPolicyScalingSchedule.Builder
newBuilder()
static AutoscalingPolicyScalingSchedule.Builder
newBuilder(AutoscalingPolicyScalingSchedule prototype)
AutoscalingPolicyScalingSchedule.Builder
newBuilderForType()
protected AutoscalingPolicyScalingSchedule.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static AutoscalingPolicyScalingSchedule
parseDelimitedFrom(InputStream input)
static AutoscalingPolicyScalingSchedule
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicyScalingSchedule
parseFrom(byte[] data)
static AutoscalingPolicyScalingSchedule
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicyScalingSchedule
parseFrom(com.google.protobuf.ByteString data)
static AutoscalingPolicyScalingSchedule
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicyScalingSchedule
parseFrom(com.google.protobuf.CodedInputStream input)
static AutoscalingPolicyScalingSchedule
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicyScalingSchedule
parseFrom(InputStream input)
static AutoscalingPolicyScalingSchedule
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static AutoscalingPolicyScalingSchedule
parseFrom(ByteBuffer data)
static AutoscalingPolicyScalingSchedule
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<AutoscalingPolicyScalingSchedule>
parser()
AutoscalingPolicyScalingSchedule.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DURATION_SEC_FIELD_NUMBER
public static final int DURATION_SEC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_REQUIRED_REPLICAS_FIELD_NUMBER
public static final int MIN_REQUIRED_REPLICAS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEDULE_FIELD_NUMBER
public static final int SCHEDULE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
hasDescription
public boolean hasDescription()
A description of a scaling schedule.
optional string description = 422937596;
- Specified by:
hasDescription
in interfaceAutoscalingPolicyScalingScheduleOrBuilder
- Returns:
- Whether the description field is set.
-
getDescription
public String getDescription()
A description of a scaling schedule.
optional string description = 422937596;
- Specified by:
getDescription
in interfaceAutoscalingPolicyScalingScheduleOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A description of a scaling schedule.
optional string description = 422937596;
- Specified by:
getDescriptionBytes
in interfaceAutoscalingPolicyScalingScheduleOrBuilder
- Returns:
- The bytes for description.
-
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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- 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 interfaceAutoscalingPolicyScalingScheduleOrBuilder
- Returns:
- The bytes for timeZone.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AutoscalingPolicyScalingSchedule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
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
-
parseFrom
public static AutoscalingPolicyScalingSchedule parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AutoscalingPolicyScalingSchedule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AutoscalingPolicyScalingSchedule parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AutoscalingPolicyScalingSchedule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AutoscalingPolicyScalingSchedule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AutoscalingPolicyScalingSchedule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AutoscalingPolicyScalingSchedule.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AutoscalingPolicyScalingSchedule.Builder newBuilder()
-
newBuilder
public static AutoscalingPolicyScalingSchedule.Builder newBuilder(AutoscalingPolicyScalingSchedule prototype)
-
toBuilder
public AutoscalingPolicyScalingSchedule.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AutoscalingPolicyScalingSchedule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AutoscalingPolicyScalingSchedule getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AutoscalingPolicyScalingSchedule> parser()
-
getParserForType
public com.google.protobuf.Parser<AutoscalingPolicyScalingSchedule> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AutoscalingPolicyScalingSchedule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-