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| Modifier and Type | Class and Description |
|---|---|
static class |
AutoscalingPolicyScalingSchedule.Builder
Scaling based on user-defined schedule.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and 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 |
| Modifier and Type | Method and 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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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(ByteBuffer data) |
static AutoscalingPolicyScalingSchedule |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<AutoscalingPolicyScalingSchedule> |
parser() |
AutoscalingPolicyScalingSchedule.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DESCRIPTION_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
public static final int DURATION_SEC_FIELD_NUMBER
public static final int MIN_REQUIRED_REPLICAS_FIELD_NUMBER
public static final int SCHEDULE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasDescription()
A description of a scaling schedule.
optional string description = 422937596;hasDescription in interface AutoscalingPolicyScalingScheduleOrBuilderpublic String getDescription()
A description of a scaling schedule.
optional string description = 422937596;getDescription in interface AutoscalingPolicyScalingScheduleOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A description of a scaling schedule.
optional string description = 422937596;getDescriptionBytes in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;hasDisabled in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;getDisabled in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;hasDurationSec in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;getDurationSec in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;hasMinRequiredReplicas in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;getMinRequiredReplicas in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;hasSchedule in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;getSchedule in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;getScheduleBytes in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;hasTimeZone in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;getTimeZone in interface AutoscalingPolicyScalingScheduleOrBuilderpublic 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;getTimeZoneBytes in interface AutoscalingPolicyScalingScheduleOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AutoscalingPolicyScalingSchedule parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(InputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AutoscalingPolicyScalingSchedule parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicyScalingSchedule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AutoscalingPolicyScalingSchedule parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AutoscalingPolicyScalingSchedule.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AutoscalingPolicyScalingSchedule.Builder newBuilder()
public static AutoscalingPolicyScalingSchedule.Builder newBuilder(AutoscalingPolicyScalingSchedule prototype)
public AutoscalingPolicyScalingSchedule.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AutoscalingPolicyScalingSchedule.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AutoscalingPolicyScalingSchedule getDefaultInstance()
public static com.google.protobuf.Parser<AutoscalingPolicyScalingSchedule> parser()
public com.google.protobuf.Parser<AutoscalingPolicyScalingSchedule> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AutoscalingPolicyScalingSchedule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.