- 1.86.0 (latest)
- 1.85.0
- 1.84.0
- 1.83.0
- 1.82.0
- 1.80.0
- 1.78.0
- 1.77.0
- 1.74.0
- 1.73.0
- 1.72.0
- 1.70.0
- 1.69.0
- 1.68.0
- 1.67.0
- 1.66.0
- 1.65.0
- 1.64.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class AutoscalingPolicyScalingSchedule.Builder extends GeneratedMessageV3.Builder<AutoscalingPolicyScalingSchedule.Builder> implements AutoscalingPolicyScalingScheduleOrBuilderScaling 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AutoscalingPolicyScalingSchedule.BuilderImplements
AutoscalingPolicyScalingScheduleOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AutoscalingPolicyScalingSchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
|
build()
public AutoscalingPolicyScalingSchedule build()| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule |
|
buildPartial()
public AutoscalingPolicyScalingSchedule buildPartial()| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule |
|
clear()
public AutoscalingPolicyScalingSchedule.Builder clear()| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
|
clearDescription()
public AutoscalingPolicyScalingSchedule.Builder clearDescription()A description of a scaling schedule.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
This builder for chaining. |
clearDisabled()
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;
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
This builder for chaining. |
clearDurationSec()
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;
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AutoscalingPolicyScalingSchedule.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
|
clearMinRequiredReplicas()
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;
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AutoscalingPolicyScalingSchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
|
clearSchedule()
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;
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
This builder for chaining. |
clearTimeZone()
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: https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of "UTC" if left empty.
optional string time_zone = 36848094;
| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
This builder for chaining. |
clone()
public AutoscalingPolicyScalingSchedule.Builder clone()| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule.Builder |
|
getDefaultInstanceForType()
public AutoscalingPolicyScalingSchedule getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AutoscalingPolicyScalingSchedule |
|
getDescription()
public String getDescription()A description of a scaling schedule.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()A description of a scaling schedule.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
The disabled. |
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;
| Returns | |
|---|---|
| Type | Description |
int |
The durationSec. |
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;
| Returns | |
|---|---|
| Type | Description |
int |
The minRequiredReplicas. |
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;
| Returns | |
|---|---|
| Type | Description |
String |
The schedule. |
getScheduleBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for schedule. |
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: https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of "UTC" if left empty.
optional string time_zone = 36848094;
| Returns | |
|---|---|
| Type | Description |
String |
The timeZone. |
getTimeZoneBytes()
public 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: https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of "UTC" if left empty.
optional string time_zone = 36848094;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for timeZone. |
hasDescription()
public boolean hasDescription()A description of a scaling schedule.
optional string description = 422937596;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the description field is set. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the disabled field is set. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the durationSec field is set. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minRequiredReplicas field is set. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the schedule field is set. |
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: https://en.wikipedia.org/wiki/Tz_database. This field is assigned a default value of "UTC" if left empty.
optional string time_zone = 36848094;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the timeZone field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns |
|---|