public static final class Autoscaler.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder> implements AutoscalerOrBuilder
Represents an Autoscaler resource. Google Compute Engine has two Autoscaler resources: * [Zonal](/compute/docs/reference/rest/v1/autoscalers) * [Regional](/compute/docs/reference/rest/v1/regionAutoscalers) Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource.Protobuf type
google.cloud.compute.v1.Autoscaler| Modifier and Type | Method and Description |
|---|---|
Autoscaler.Builder |
addAllStatusDetails(Iterable<? extends AutoscalerStatusDetails> values)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Autoscaler.Builder |
addStatusDetails(AutoscalerStatusDetails.Builder builderForValue)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
addStatusDetails(AutoscalerStatusDetails value)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
addStatusDetails(int index,
AutoscalerStatusDetails.Builder builderForValue)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
addStatusDetails(int index,
AutoscalerStatusDetails value)
[Output Only] Human-readable details about the current state of the autoscaler.
|
AutoscalerStatusDetails.Builder |
addStatusDetailsBuilder()
[Output Only] Human-readable details about the current state of the autoscaler.
|
AutoscalerStatusDetails.Builder |
addStatusDetailsBuilder(int index)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler |
build() |
Autoscaler |
buildPartial() |
Autoscaler.Builder |
clear() |
Autoscaler.Builder |
clearAutoscalingPolicy()
The configuration parameters for the autoscaling algorithm.
|
Autoscaler.Builder |
clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
Autoscaler.Builder |
clearDescription()
An optional description of this resource.
|
Autoscaler.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Autoscaler.Builder |
clearId()
[Output Only] The unique identifier for the resource.
|
Autoscaler.Builder |
clearKind()
[Output Only] Type of the resource.
|
Autoscaler.Builder |
clearName()
Name of the resource.
|
Autoscaler.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Autoscaler.Builder |
clearRecommendedSize()
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler.
|
Autoscaler.Builder |
clearRegion()
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
|
Autoscaler.Builder |
clearScalingScheduleStatus() |
Autoscaler.Builder |
clearSelfLink()
[Output Only] Server-defined URL for the resource.
|
Autoscaler.Builder |
clearStatus()
[Output Only] The status of the autoscaler configuration.
|
Autoscaler.Builder |
clearStatusDetails()
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
clearTarget()
URL of the managed instance group that this autoscaler will scale.
|
Autoscaler.Builder |
clearZone()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
|
Autoscaler.Builder |
clone() |
boolean |
containsScalingScheduleStatus(String key)
[Output Only] Status information of existing scaling schedules.
|
AutoscalingPolicy |
getAutoscalingPolicy()
The configuration parameters for the autoscaling algorithm.
|
AutoscalingPolicy.Builder |
getAutoscalingPolicyBuilder()
The configuration parameters for the autoscaling algorithm.
|
AutoscalingPolicyOrBuilder |
getAutoscalingPolicyOrBuilder()
The configuration parameters for the autoscaling algorithm.
|
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
com.google.protobuf.ByteString |
getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
|
Autoscaler |
getDefaultInstanceForType() |
String |
getDescription()
An optional description of this resource.
|
com.google.protobuf.ByteString |
getDescriptionBytes()
An optional description of this resource.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
long |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output Only] Type of the resource.
|
com.google.protobuf.ByteString |
getKindBytes()
[Output Only] Type of the resource.
|
Map<String,ScalingScheduleStatus> |
getMutableScalingScheduleStatus()
Deprecated.
|
String |
getName()
Name of the resource.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the resource.
|
int |
getRecommendedSize()
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler.
|
String |
getRegion()
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
|
com.google.protobuf.ByteString |
getRegionBytes()
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
|
Map<String,ScalingScheduleStatus> |
getScalingScheduleStatus()
Deprecated.
|
int |
getScalingScheduleStatusCount()
[Output Only] Status information of existing scaling schedules.
|
Map<String,ScalingScheduleStatus> |
getScalingScheduleStatusMap()
[Output Only] Status information of existing scaling schedules.
|
ScalingScheduleStatus |
getScalingScheduleStatusOrDefault(String key,
ScalingScheduleStatus defaultValue)
[Output Only] Status information of existing scaling schedules.
|
ScalingScheduleStatus |
getScalingScheduleStatusOrThrow(String key)
[Output Only] Status information of existing scaling schedules.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
com.google.protobuf.ByteString |
getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
|
String |
getStatus()
[Output Only] The status of the autoscaler configuration.
|
com.google.protobuf.ByteString |
getStatusBytes()
[Output Only] The status of the autoscaler configuration.
|
AutoscalerStatusDetails |
getStatusDetails(int index)
[Output Only] Human-readable details about the current state of the autoscaler.
|
AutoscalerStatusDetails.Builder |
getStatusDetailsBuilder(int index)
[Output Only] Human-readable details about the current state of the autoscaler.
|
List<AutoscalerStatusDetails.Builder> |
getStatusDetailsBuilderList()
[Output Only] Human-readable details about the current state of the autoscaler.
|
int |
getStatusDetailsCount()
[Output Only] Human-readable details about the current state of the autoscaler.
|
List<AutoscalerStatusDetails> |
getStatusDetailsList()
[Output Only] Human-readable details about the current state of the autoscaler.
|
AutoscalerStatusDetailsOrBuilder |
getStatusDetailsOrBuilder(int index)
[Output Only] Human-readable details about the current state of the autoscaler.
|
List<? extends AutoscalerStatusDetailsOrBuilder> |
getStatusDetailsOrBuilderList()
[Output Only] Human-readable details about the current state of the autoscaler.
|
String |
getTarget()
URL of the managed instance group that this autoscaler will scale.
|
com.google.protobuf.ByteString |
getTargetBytes()
URL of the managed instance group that this autoscaler will scale.
|
String |
getZone()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
|
com.google.protobuf.ByteString |
getZoneBytes()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
|
boolean |
hasAutoscalingPolicy()
The configuration parameters for the autoscaling algorithm.
|
boolean |
hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
boolean |
hasDescription()
An optional description of this resource.
|
boolean |
hasId()
[Output Only] The unique identifier for the resource.
|
boolean |
hasKind()
[Output Only] Type of the resource.
|
boolean |
hasName()
Name of the resource.
|
boolean |
hasRecommendedSize()
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler.
|
boolean |
hasRegion()
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
|
boolean |
hasSelfLink()
[Output Only] Server-defined URL for the resource.
|
boolean |
hasStatus()
[Output Only] The status of the autoscaler configuration.
|
boolean |
hasTarget()
URL of the managed instance group that this autoscaler will scale.
|
boolean |
hasZone()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Autoscaler.Builder |
mergeAutoscalingPolicy(AutoscalingPolicy value)
The configuration parameters for the autoscaling algorithm.
|
Autoscaler.Builder |
mergeFrom(Autoscaler other) |
Autoscaler.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Autoscaler.Builder |
mergeFrom(com.google.protobuf.Message other) |
Autoscaler.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Autoscaler.Builder |
putAllScalingScheduleStatus(Map<String,ScalingScheduleStatus> values)
[Output Only] Status information of existing scaling schedules.
|
Autoscaler.Builder |
putScalingScheduleStatus(String key,
ScalingScheduleStatus value)
[Output Only] Status information of existing scaling schedules.
|
Autoscaler.Builder |
removeScalingScheduleStatus(String key)
[Output Only] Status information of existing scaling schedules.
|
Autoscaler.Builder |
removeStatusDetails(int index)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
setAutoscalingPolicy(AutoscalingPolicy.Builder builderForValue)
The configuration parameters for the autoscaling algorithm.
|
Autoscaler.Builder |
setAutoscalingPolicy(AutoscalingPolicy value)
The configuration parameters for the autoscaling algorithm.
|
Autoscaler.Builder |
setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
|
Autoscaler.Builder |
setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
|
Autoscaler.Builder |
setDescription(String value)
An optional description of this resource.
|
Autoscaler.Builder |
setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource.
|
Autoscaler.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Autoscaler.Builder |
setId(long value)
[Output Only] The unique identifier for the resource.
|
Autoscaler.Builder |
setKind(String value)
[Output Only] Type of the resource.
|
Autoscaler.Builder |
setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource.
|
Autoscaler.Builder |
setName(String value)
Name of the resource.
|
Autoscaler.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of the resource.
|
Autoscaler.Builder |
setRecommendedSize(int value)
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler.
|
Autoscaler.Builder |
setRegion(String value)
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
|
Autoscaler.Builder |
setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
|
Autoscaler.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Autoscaler.Builder |
setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
|
Autoscaler.Builder |
setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
|
Autoscaler.Builder |
setStatus(String value)
[Output Only] The status of the autoscaler configuration.
|
Autoscaler.Builder |
setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the autoscaler configuration.
|
Autoscaler.Builder |
setStatusDetails(int index,
AutoscalerStatusDetails.Builder builderForValue)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
setStatusDetails(int index,
AutoscalerStatusDetails value)
[Output Only] Human-readable details about the current state of the autoscaler.
|
Autoscaler.Builder |
setTarget(String value)
URL of the managed instance group that this autoscaler will scale.
|
Autoscaler.Builder |
setTargetBytes(com.google.protobuf.ByteString value)
URL of the managed instance group that this autoscaler will scale.
|
Autoscaler.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Autoscaler.Builder |
setZone(String value)
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
|
Autoscaler.Builder |
setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>public Autoscaler.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.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<Autoscaler.Builder>public Autoscaler getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Autoscaler build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Autoscaler buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Autoscaler.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>public Autoscaler.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<Autoscaler.Builder>public Autoscaler.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>public Autoscaler.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>public Autoscaler.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<Autoscaler.Builder>public Autoscaler.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<Autoscaler.Builder>public Autoscaler.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Autoscaler.Builder>public Autoscaler.Builder mergeFrom(Autoscaler other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>public Autoscaler.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<Autoscaler.Builder>IOExceptionpublic boolean hasAutoscalingPolicy()
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
hasAutoscalingPolicy in interface AutoscalerOrBuilderpublic AutoscalingPolicy getAutoscalingPolicy()
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
getAutoscalingPolicy in interface AutoscalerOrBuilderpublic Autoscaler.Builder setAutoscalingPolicy(AutoscalingPolicy value)
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
public Autoscaler.Builder setAutoscalingPolicy(AutoscalingPolicy.Builder builderForValue)
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
public Autoscaler.Builder mergeAutoscalingPolicy(AutoscalingPolicy value)
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
public Autoscaler.Builder clearAutoscalingPolicy()
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
public AutoscalingPolicy.Builder getAutoscalingPolicyBuilder()
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
public AutoscalingPolicyOrBuilder getAutoscalingPolicyOrBuilder()
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization, customMetricUtilizations, and loadBalancingUtilization. If none of these are specified, the default will be to autoscale based on cpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
getAutoscalingPolicyOrBuilder in interface AutoscalerOrBuilderpublic boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;hasCreationTimestamp in interface AutoscalerOrBuilderpublic String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestamp in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;getCreationTimestampBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The creationTimestamp to set.public Autoscaler.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;public Autoscaler.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;value - The bytes for creationTimestamp to set.public boolean hasDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;hasDescription in interface AutoscalerOrBuilderpublic String getDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescription in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;getDescriptionBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The description to set.public Autoscaler.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;public Autoscaler.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;value - The bytes for description to set.public boolean hasId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;hasId in interface AutoscalerOrBuilderpublic long getId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;getId in interface AutoscalerOrBuilderpublic Autoscaler.Builder setId(long value)
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;value - The id to set.public Autoscaler.Builder clearId()
[Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;public boolean hasKind()
[Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;hasKind in interface AutoscalerOrBuilderpublic String getKind()
[Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;getKind in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getKindBytes()
[Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;getKindBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setKind(String value)
[Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;value - The kind to set.public Autoscaler.Builder clearKind()
[Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;public Autoscaler.Builder setKindBytes(com.google.protobuf.ByteString value)
[Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;value - The bytes for kind to set.public boolean hasName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;hasName in interface AutoscalerOrBuilderpublic String getName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getName in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;getNameBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setName(String value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;value - The name to set.public Autoscaler.Builder clearName()
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;public Autoscaler.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
optional string name = 3373707;value - The bytes for name to set.public boolean hasRecommendedSize()
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is different from ON. This field is empty when autoscaler is not connected to an existing managed instance group or autoscaler did not generate its prediction.
optional int32 recommended_size = 257915749;hasRecommendedSize in interface AutoscalerOrBuilderpublic int getRecommendedSize()
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is different from ON. This field is empty when autoscaler is not connected to an existing managed instance group or autoscaler did not generate its prediction.
optional int32 recommended_size = 257915749;getRecommendedSize in interface AutoscalerOrBuilderpublic Autoscaler.Builder setRecommendedSize(int value)
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is different from ON. This field is empty when autoscaler is not connected to an existing managed instance group or autoscaler did not generate its prediction.
optional int32 recommended_size = 257915749;value - The recommendedSize to set.public Autoscaler.Builder clearRecommendedSize()
[Output Only] Target recommended MIG size (number of instances) computed by autoscaler. Autoscaler calculates the recommended MIG size even when the autoscaling policy mode is different from ON. This field is empty when autoscaler is not connected to an existing managed instance group or autoscaler did not generate its prediction.
optional int32 recommended_size = 257915749;public boolean hasRegion()
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;hasRegion in interface AutoscalerOrBuilderpublic String getRegion()
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;getRegion in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;getRegionBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setRegion(String value)
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;value - The region to set.public Autoscaler.Builder clearRegion()
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;public Autoscaler.Builder setRegionBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the region where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;value - The bytes for region to set.public int getScalingScheduleStatusCount()
AutoscalerOrBuilder[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
getScalingScheduleStatusCount in interface AutoscalerOrBuilderpublic boolean containsScalingScheduleStatus(String key)
[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
containsScalingScheduleStatus in interface AutoscalerOrBuilder@Deprecated public Map<String,ScalingScheduleStatus> getScalingScheduleStatus()
getScalingScheduleStatusMap() instead.getScalingScheduleStatus in interface AutoscalerOrBuilderpublic Map<String,ScalingScheduleStatus> getScalingScheduleStatusMap()
[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
getScalingScheduleStatusMap in interface AutoscalerOrBuilderpublic ScalingScheduleStatus getScalingScheduleStatusOrDefault(String key, ScalingScheduleStatus defaultValue)
[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
getScalingScheduleStatusOrDefault in interface AutoscalerOrBuilderpublic ScalingScheduleStatus getScalingScheduleStatusOrThrow(String key)
[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
getScalingScheduleStatusOrThrow in interface AutoscalerOrBuilderpublic Autoscaler.Builder clearScalingScheduleStatus()
public Autoscaler.Builder removeScalingScheduleStatus(String key)
[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
@Deprecated public Map<String,ScalingScheduleStatus> getMutableScalingScheduleStatus()
public Autoscaler.Builder putScalingScheduleStatus(String key, ScalingScheduleStatus value)
[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
public Autoscaler.Builder putAllScalingScheduleStatus(Map<String,ScalingScheduleStatus> values)
[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;hasSelfLink in interface AutoscalerOrBuilderpublic String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLink in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;getSelfLinkBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;value - The selfLink to set.public Autoscaler.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;public Autoscaler.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;value - The bytes for selfLink to set.public boolean hasStatus()
[Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. Check the Status enum for the list of possible values.
optional string status = 181260274;hasStatus in interface AutoscalerOrBuilderpublic String getStatus()
[Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatus in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getStatusBytes()
[Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. Check the Status enum for the list of possible values.
optional string status = 181260274;getStatusBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setStatus(String value)
[Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. Check the Status enum for the list of possible values.
optional string status = 181260274;value - The status to set.public Autoscaler.Builder clearStatus()
[Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. Check the Status enum for the list of possible values.
optional string status = 181260274;public Autoscaler.Builder setStatusBytes(com.google.protobuf.ByteString value)
[Output Only] The status of the autoscaler configuration. Current set of possible values: - PENDING: Autoscaler backend hasn't read new/updated configuration. - DELETING: Configuration is being deleted. - ACTIVE: Configuration is acknowledged to be effective. Some warnings might be present in the statusDetails field. - ERROR: Configuration has errors. Actionable for users. Details are present in the statusDetails field. New values might be added in the future. Check the Status enum for the list of possible values.
optional string status = 181260274;value - The bytes for status to set.public List<AutoscalerStatusDetails> getStatusDetailsList()
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
getStatusDetailsList in interface AutoscalerOrBuilderpublic int getStatusDetailsCount()
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
getStatusDetailsCount in interface AutoscalerOrBuilderpublic AutoscalerStatusDetails getStatusDetails(int index)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
getStatusDetails in interface AutoscalerOrBuilderpublic Autoscaler.Builder setStatusDetails(int index, AutoscalerStatusDetails value)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public Autoscaler.Builder setStatusDetails(int index, AutoscalerStatusDetails.Builder builderForValue)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public Autoscaler.Builder addStatusDetails(AutoscalerStatusDetails value)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public Autoscaler.Builder addStatusDetails(int index, AutoscalerStatusDetails value)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public Autoscaler.Builder addStatusDetails(AutoscalerStatusDetails.Builder builderForValue)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public Autoscaler.Builder addStatusDetails(int index, AutoscalerStatusDetails.Builder builderForValue)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public Autoscaler.Builder addAllStatusDetails(Iterable<? extends AutoscalerStatusDetails> values)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public Autoscaler.Builder clearStatusDetails()
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public Autoscaler.Builder removeStatusDetails(int index)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public AutoscalerStatusDetails.Builder getStatusDetailsBuilder(int index)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public AutoscalerStatusDetailsOrBuilder getStatusDetailsOrBuilder(int index)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
getStatusDetailsOrBuilder in interface AutoscalerOrBuilderpublic List<? extends AutoscalerStatusDetailsOrBuilder> getStatusDetailsOrBuilderList()
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
getStatusDetailsOrBuilderList in interface AutoscalerOrBuilderpublic AutoscalerStatusDetails.Builder addStatusDetailsBuilder()
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public AutoscalerStatusDetails.Builder addStatusDetailsBuilder(int index)
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public List<AutoscalerStatusDetails.Builder> getStatusDetailsBuilderList()
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
public boolean hasTarget()
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;hasTarget in interface AutoscalerOrBuilderpublic String getTarget()
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;getTarget in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getTargetBytes()
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;getTargetBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setTarget(String value)
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;value - The target to set.public Autoscaler.Builder clearTarget()
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;public Autoscaler.Builder setTargetBytes(com.google.protobuf.ByteString value)
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;value - The bytes for target to set.public boolean hasZone()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;hasZone in interface AutoscalerOrBuilderpublic String getZone()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;getZone in interface AutoscalerOrBuilderpublic com.google.protobuf.ByteString getZoneBytes()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;getZoneBytes in interface AutoscalerOrBuilderpublic Autoscaler.Builder setZone(String value)
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;value - The zone to set.public Autoscaler.Builder clearZone()
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;public Autoscaler.Builder setZoneBytes(com.google.protobuf.ByteString value)
[Output Only] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;value - The bytes for zone to set.public final Autoscaler.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>public final Autoscaler.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Autoscaler.Builder>Copyright © 2023 Google LLC. All rights reserved.