public static final class AutoscalingPolicyScalingSchedule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder> 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 | Method and Description |
|---|---|
AutoscalingPolicyScalingSchedule.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AutoscalingPolicyScalingSchedule |
build() |
AutoscalingPolicyScalingSchedule |
buildPartial() |
AutoscalingPolicyScalingSchedule.Builder |
clear() |
AutoscalingPolicyScalingSchedule.Builder |
clearDescription()
A description of a scaling schedule.
|
AutoscalingPolicyScalingSchedule.Builder |
clearDisabled()
A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations.
|
AutoscalingPolicyScalingSchedule.Builder |
clearDurationSec()
The duration of time intervals, in seconds, for which this scaling schedule is to run.
|
AutoscalingPolicyScalingSchedule.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AutoscalingPolicyScalingSchedule.Builder |
clearMinRequiredReplicas()
The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule.
|
AutoscalingPolicyScalingSchedule.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AutoscalingPolicyScalingSchedule.Builder |
clearSchedule()
The start timestamps of time intervals when this scaling schedule is to provide a scaling signal.
|
AutoscalingPolicyScalingSchedule.Builder |
clearTimeZone()
The time zone to use when interpreting the schedule.
|
AutoscalingPolicyScalingSchedule.Builder |
clone() |
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() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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.
|
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.
|
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() |
AutoscalingPolicyScalingSchedule.Builder |
mergeFrom(AutoscalingPolicyScalingSchedule other) |
AutoscalingPolicyScalingSchedule.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AutoscalingPolicyScalingSchedule.Builder |
mergeFrom(com.google.protobuf.Message other) |
AutoscalingPolicyScalingSchedule.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AutoscalingPolicyScalingSchedule.Builder |
setDescription(String value)
A description of a scaling schedule.
|
AutoscalingPolicyScalingSchedule.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
A description of a scaling schedule.
|
AutoscalingPolicyScalingSchedule.Builder |
setDisabled(boolean value)
A boolean value that specifies whether a scaling schedule can influence autoscaler recommendations.
|
AutoscalingPolicyScalingSchedule.Builder |
setDurationSec(int value)
The duration of time intervals, in seconds, for which this scaling schedule is to run.
|
AutoscalingPolicyScalingSchedule.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AutoscalingPolicyScalingSchedule.Builder |
setMinRequiredReplicas(int value)
The minimum number of VM instances that the autoscaler will recommend in time intervals starting according to schedule.
|
AutoscalingPolicyScalingSchedule.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AutoscalingPolicyScalingSchedule.Builder |
setSchedule(String value)
The start timestamps of time intervals when this scaling schedule is to provide a scaling signal.
|
AutoscalingPolicyScalingSchedule.Builder |
setScheduleBytes(com.google.protobuf.ByteString value)
The start timestamps of time intervals when this scaling schedule is to provide a scaling signal.
|
AutoscalingPolicyScalingSchedule.Builder |
setTimeZone(String value)
The time zone to use when interpreting the schedule.
|
AutoscalingPolicyScalingSchedule.Builder |
setTimeZoneBytes(com.google.protobuf.ByteString value)
The time zone to use when interpreting the schedule.
|
AutoscalingPolicyScalingSchedule.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AutoscalingPolicyScalingSchedule build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AutoscalingPolicyScalingSchedule buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AutoscalingPolicyScalingSchedule.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder mergeFrom(AutoscalingPolicyScalingSchedule other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public AutoscalingPolicyScalingSchedule.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutoscalingPolicyScalingSchedule.Builder>IOExceptionpublic 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 AutoscalingPolicyScalingSchedule.Builder setDescription(String value)
A description of a scaling schedule.
optional string description = 422937596;value - The description to set.public AutoscalingPolicyScalingSchedule.Builder clearDescription()
A description of a scaling schedule.
optional string description = 422937596;public AutoscalingPolicyScalingSchedule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
A description of a scaling schedule.
optional string description = 422937596;value - The bytes for description to set.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;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 AutoscalingPolicyScalingSchedule.Builder setDisabled(boolean value)
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;value - The disabled to set.public AutoscalingPolicyScalingSchedule.Builder clearDisabled()
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;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;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 AutoscalingPolicyScalingSchedule.Builder setDurationSec(int value)
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;value - The durationSec to set.public AutoscalingPolicyScalingSchedule.Builder clearDurationSec()
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;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;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 AutoscalingPolicyScalingSchedule.Builder setMinRequiredReplicas(int value)
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;value - The minRequiredReplicas to set.public AutoscalingPolicyScalingSchedule.Builder clearMinRequiredReplicas()
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;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;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 AutoscalingPolicyScalingSchedule.Builder setSchedule(String value)
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;value - The schedule to set.public AutoscalingPolicyScalingSchedule.Builder clearSchedule()
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;public AutoscalingPolicyScalingSchedule.Builder setScheduleBytes(com.google.protobuf.ByteString value)
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;value - The bytes for schedule to set.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;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 AutoscalingPolicyScalingSchedule.Builder setTimeZone(String value)
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;value - The timeZone to set.public AutoscalingPolicyScalingSchedule.Builder clearTimeZone()
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;public AutoscalingPolicyScalingSchedule.Builder setTimeZoneBytes(com.google.protobuf.ByteString value)
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;value - The bytes for timeZone to set.public final AutoscalingPolicyScalingSchedule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>public final AutoscalingPolicyScalingSchedule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder>Copyright © 2023 Google LLC. All rights reserved.