Package com.google.cloud.compute.v1
Class Autoscaler.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
com.google.cloud.compute.v1.Autoscaler.Builder
- All Implemented Interfaces:
AutoscalerOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Autoscaler
public static final class Autoscaler.Builder
extends com.google.protobuf.GeneratedMessage.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 theregionAutoscalers resource.Protobuf type
google.cloud.compute.v1.Autoscaler-
Method Summary
Modifier and TypeMethodDescriptionaddAllStatusDetails(Iterable<? extends AutoscalerStatusDetails> values) [Output Only] Human-readable details about the current state of the autoscaler.addStatusDetails(int index, AutoscalerStatusDetails value) [Output Only] Human-readable details about the current state of the autoscaler.addStatusDetails(int index, AutoscalerStatusDetails.Builder builderForValue) [Output Only] Human-readable details about the current state of the autoscaler.[Output Only] Human-readable details about the current state of the autoscaler.addStatusDetails(AutoscalerStatusDetails.Builder builderForValue) [Output Only] Human-readable details about the current state of the autoscaler.[Output Only] Human-readable details about the current state of the autoscaler.addStatusDetailsBuilder(int index) [Output Only] Human-readable details about the current state of the autoscaler.build()clear()The configuration parameters for the autoscaling algorithm.Output only.An optional description of this resource.clearId()Output only.Output only.Name of the resource.Output only.Output only.[Output Only] Server-defined URL for the resource.[Output Only] The status of the autoscaler configuration.[Output Only] Human-readable details about the current state of the autoscaler.URL of the managed instance group that this autoscaler will scale.Output only.booleanOutput only.The configuration parameters for the autoscaling algorithm.The configuration parameters for the autoscaling algorithm.The configuration parameters for the autoscaling algorithm.Output only.com.google.protobuf.ByteStringOutput only.An optional description of this resource.com.google.protobuf.ByteStringAn optional description of this resource.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetId()Output only.getKind()Output only.com.google.protobuf.ByteStringOutput only.Deprecated.getName()Name of the resource.com.google.protobuf.ByteStringName of the resource.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.Deprecated.intOutput only.Output only.getScalingScheduleStatusOrDefault(String key, ScalingScheduleStatus defaultValue) Output only.Output only.[Output Only] Server-defined URL for the resource.com.google.protobuf.ByteString[Output Only] Server-defined URL for the resource.[Output Only] The status of the autoscaler configuration.com.google.protobuf.ByteString[Output Only] The status of the autoscaler configuration.getStatusDetails(int index) [Output Only] Human-readable details about the current state of the autoscaler.getStatusDetailsBuilder(int index) [Output Only] Human-readable details about the current state of the autoscaler.[Output Only] Human-readable details about the current state of the autoscaler.int[Output Only] Human-readable details about the current state of the autoscaler.[Output Only] Human-readable details about the current state of the autoscaler.getStatusDetailsOrBuilder(int index) [Output Only] Human-readable details about the current state of the autoscaler.List<? extends AutoscalerStatusDetailsOrBuilder>[Output Only] Human-readable details about the current state of the autoscaler.URL of the managed instance group that this autoscaler will scale.com.google.protobuf.ByteStringURL of the managed instance group that this autoscaler will scale.getZone()Output only.com.google.protobuf.ByteStringOutput only.booleanThe configuration parameters for the autoscaling algorithm.booleanOutput only.booleanAn optional description of this resource.booleanhasId()Output only.booleanhasKind()Output only.booleanhasName()Name of the resource.booleanOutput only.booleanOutput only.boolean[Output Only] Server-defined URL for the resource.boolean[Output Only] The status of the autoscaler configuration.booleanURL of the managed instance group that this autoscaler will scale.booleanhasZone()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanThe configuration parameters for the autoscaling algorithm.mergeFrom(Autoscaler other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.putScalingScheduleStatus(String key, ScalingScheduleStatus value) Output only.Output only.Output only.removeStatusDetails(int index) [Output Only] Human-readable details about the current state of the autoscaler.The configuration parameters for the autoscaling algorithm.setAutoscalingPolicy(AutoscalingPolicy.Builder builderForValue) The configuration parameters for the autoscaling algorithm.setCreationTimestamp(String value) Output only.setCreationTimestampBytes(com.google.protobuf.ByteString value) Output only.setDescription(String value) An optional description of this resource.setDescriptionBytes(com.google.protobuf.ByteString value) An optional description of this resource.setId(long value) Output only.Output only.setKindBytes(com.google.protobuf.ByteString value) Output only.Name of the resource.setNameBytes(com.google.protobuf.ByteString value) Name of the resource.setRecommendedSize(int value) Output only.Output only.setRegionBytes(com.google.protobuf.ByteString value) Output only.setSelfLink(String value) [Output Only] Server-defined URL for the resource.setSelfLinkBytes(com.google.protobuf.ByteString value) [Output Only] Server-defined URL for the resource.[Output Only] The status of the autoscaler configuration.setStatusBytes(com.google.protobuf.ByteString value) [Output Only] The status of the autoscaler configuration.setStatusDetails(int index, AutoscalerStatusDetails value) [Output Only] Human-readable details about the current state of the autoscaler.setStatusDetails(int index, AutoscalerStatusDetails.Builder builderForValue) [Output Only] Human-readable details about the current state of the autoscaler.URL of the managed instance group that this autoscaler will scale.setTargetBytes(com.google.protobuf.ByteString value) URL of the managed instance group that this autoscaler will scale.Output only.setZoneBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Autoscaler.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
-
mergeFrom
public Autoscaler.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Autoscaler.Builder>- Throws:
IOException
-
hasAutoscalingPolicy
public boolean hasAutoscalingPolicy()The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;- Specified by:
hasAutoscalingPolicyin interfaceAutoscalerOrBuilder- Returns:
- Whether the autoscalingPolicy field is set.
-
getAutoscalingPolicy
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;- Specified by:
getAutoscalingPolicyin interfaceAutoscalerOrBuilder- Returns:
- The autoscalingPolicy.
-
setAutoscalingPolicy
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041; -
setAutoscalingPolicy
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041; -
mergeAutoscalingPolicy
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041; -
clearAutoscalingPolicy
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041; -
getAutoscalingPolicyBuilder
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041; -
getAutoscalingPolicyOrBuilder
The configuration parameters for the autoscaling algorithm. You can define one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization. If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;- Specified by:
getAutoscalingPolicyOrBuilderin interfaceAutoscalerOrBuilder
-
hasCreationTimestamp
public boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
hasCreationTimestampin interfaceAutoscalerOrBuilder- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampin interfaceAutoscalerOrBuilder- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
public com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Specified by:
getCreationTimestampBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for creationTimestamp.
-
setCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The creationTimestamp to set.- Returns:
- This builder for chaining.
-
clearCreationTimestamp
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- This builder for chaining.
-
setCreationTimestampBytes
Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Parameters:
value- The bytes for creationTimestamp to set.- Returns:
- This builder for chaining.
-
hasDescription
public boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
hasDescriptionin interfaceAutoscalerOrBuilder- Returns:
- Whether the description field is set.
-
getDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionin interfaceAutoscalerOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Specified by:
getDescriptionBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for description.
-
setDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- This builder for chaining.
-
setDescriptionBytes
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
hasIdin interfaceAutoscalerOrBuilder- Returns:
- Whether the id field is set.
-
getId
public long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Specified by:
getIdin interfaceAutoscalerOrBuilder- Returns:
- The id.
-
setId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- This builder for chaining.
-
hasKind
public boolean hasKind()Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Specified by:
hasKindin interfaceAutoscalerOrBuilder- Returns:
- Whether the kind field is set.
-
getKind
Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Specified by:
getKindin interfaceAutoscalerOrBuilder- Returns:
- The kind.
-
getKindBytes
public com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Specified by:
getKindBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for kind.
-
setKind
Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Parameters:
value- The kind to set.- Returns:
- This builder for chaining.
-
clearKind
Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Returns:
- This builder for chaining.
-
setKindBytes
Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Parameters:
value- The bytes for kind to set.- Returns:
- This builder for chaining.
-
hasName
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 withRFC1035. 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;- Specified by:
hasNamein interfaceAutoscalerOrBuilder- Returns:
- Whether the name field is set.
-
getName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Specified by:
getNamein interfaceAutoscalerOrBuilder- Returns:
- The name.
-
getNameBytes
public 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 withRFC1035. 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;- Specified by:
getNameBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Returns:
- This builder for chaining.
-
setNameBytes
Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply withRFC1035. 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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasRecommendedSize
public boolean hasRecommendedSize()Output only. [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;- Specified by:
hasRecommendedSizein interfaceAutoscalerOrBuilder- Returns:
- Whether the recommendedSize field is set.
-
getRecommendedSize
public int getRecommendedSize()Output only. [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;- Specified by:
getRecommendedSizein interfaceAutoscalerOrBuilder- Returns:
- The recommendedSize.
-
setRecommendedSize
Output only. [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;- Parameters:
value- The recommendedSize to set.- Returns:
- This builder for chaining.
-
clearRecommendedSize
Output only. [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;- Returns:
- This builder for chaining.
-
hasRegion
public boolean hasRegion()Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;- Specified by:
hasRegionin interfaceAutoscalerOrBuilder- Returns:
- Whether the region field is set.
-
getRegion
Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;- Specified by:
getRegionin interfaceAutoscalerOrBuilder- Returns:
- The region.
-
getRegionBytes
public com.google.protobuf.ByteString getRegionBytes()Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;- Specified by:
getRegionBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for region.
-
setRegion
Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;- Parameters:
value- The region to set.- Returns:
- This builder for chaining.
-
clearRegion
Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;- Returns:
- This builder for chaining.
-
setRegionBytes
Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;- Parameters:
value- The bytes for region to set.- Returns:
- This builder for chaining.
-
getScalingScheduleStatusCount
public int getScalingScheduleStatusCount()Description copied from interface:AutoscalerOrBuilderOutput only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;- Specified by:
getScalingScheduleStatusCountin interfaceAutoscalerOrBuilder
-
containsScalingScheduleStatus
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;- Specified by:
containsScalingScheduleStatusin interfaceAutoscalerOrBuilder
-
getScalingScheduleStatus
Deprecated.UsegetScalingScheduleStatusMap()instead.- Specified by:
getScalingScheduleStatusin interfaceAutoscalerOrBuilder
-
getScalingScheduleStatusMap
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;- Specified by:
getScalingScheduleStatusMapin interfaceAutoscalerOrBuilder
-
getScalingScheduleStatusOrDefault
public ScalingScheduleStatus getScalingScheduleStatusOrDefault(String key, ScalingScheduleStatus defaultValue) Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;- Specified by:
getScalingScheduleStatusOrDefaultin interfaceAutoscalerOrBuilder
-
getScalingScheduleStatusOrThrow
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;- Specified by:
getScalingScheduleStatusOrThrowin interfaceAutoscalerOrBuilder
-
clearScalingScheduleStatus
-
removeScalingScheduleStatus
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178; -
getMutableScalingScheduleStatus
Deprecated.Use alternate mutation accessors instead. -
putScalingScheduleStatus
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178; -
putAllScalingScheduleStatus
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178; -
putScalingScheduleStatusBuilderIfAbsent
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178; -
hasSelfLink
public boolean hasSelfLink()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
hasSelfLinkin interfaceAutoscalerOrBuilder- Returns:
- Whether the selfLink field is set.
-
getSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkin interfaceAutoscalerOrBuilder- Returns:
- The selfLink.
-
getSelfLinkBytes
public com.google.protobuf.ByteString getSelfLinkBytes()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Specified by:
getSelfLinkBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for selfLink.
-
setSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The selfLink to set.- Returns:
- This builder for chaining.
-
clearSelfLink
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- This builder for chaining.
-
setSelfLinkBytes
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Parameters:
value- The bytes for selfLink to set.- Returns:
- This builder for chaining.
-
hasStatus
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;- Specified by:
hasStatusin interfaceAutoscalerOrBuilder- Returns:
- Whether the status field is set.
-
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;- Specified by:
getStatusin interfaceAutoscalerOrBuilder- Returns:
- The status.
-
getStatusBytes
public 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;- Specified by:
getStatusBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for status.
-
setStatus
[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;- Parameters:
value- The status to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setStatusBytes
[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;- Parameters:
value- The bytes for status to set.- Returns:
- This builder for chaining.
-
getStatusDetailsList
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;- Specified by:
getStatusDetailsListin interfaceAutoscalerOrBuilder
-
getStatusDetailsCount
public int getStatusDetailsCount()[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;- Specified by:
getStatusDetailsCountin interfaceAutoscalerOrBuilder
-
getStatusDetails
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;- Specified by:
getStatusDetailsin interfaceAutoscalerOrBuilder
-
setStatusDetails
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
setStatusDetails
public Autoscaler.Builder setStatusDetails(int index, AutoscalerStatusDetails.Builder builderForValue) [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
addStatusDetails
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
addStatusDetails
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
addStatusDetails
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
addStatusDetails
public Autoscaler.Builder addStatusDetails(int index, AutoscalerStatusDetails.Builder builderForValue) [Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
addAllStatusDetails
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
clearStatusDetails
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
removeStatusDetails
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
getStatusDetailsBuilder
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
getStatusDetailsOrBuilder
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;- Specified by:
getStatusDetailsOrBuilderin interfaceAutoscalerOrBuilder
-
getStatusDetailsOrBuilderList
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;- Specified by:
getStatusDetailsOrBuilderListin interfaceAutoscalerOrBuilder
-
addStatusDetailsBuilder
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
addStatusDetailsBuilder
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
getStatusDetailsBuilderList
[Output Only] Human-readable details about the current state of the autoscaler. Read the documentation forCommonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845; -
hasTarget
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;- Specified by:
hasTargetin interfaceAutoscalerOrBuilder- Returns:
- Whether the target field is set.
-
getTarget
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;- Specified by:
getTargetin interfaceAutoscalerOrBuilder- Returns:
- The target.
-
getTargetBytes
public 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;- Specified by:
getTargetBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for target.
-
setTarget
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;- Parameters:
value- The target to set.- Returns:
- This builder for chaining.
-
clearTarget
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;- Returns:
- This builder for chaining.
-
setTargetBytes
URL of the managed instance group that this autoscaler will scale. This field is required when creating an autoscaler.
optional string target = 192835985;- Parameters:
value- The bytes for target to set.- Returns:
- This builder for chaining.
-
hasZone
public boolean hasZone()Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;- Specified by:
hasZonein interfaceAutoscalerOrBuilder- Returns:
- Whether the zone field is set.
-
getZone
Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;- Specified by:
getZonein interfaceAutoscalerOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;- Specified by:
getZoneBytesin interfaceAutoscalerOrBuilder- Returns:
- The bytes for zone.
-
setZone
Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;- Parameters:
value- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;- Returns:
- This builder for chaining.
-
setZoneBytes
Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;- Parameters:
value- The bytes for zone to set.- Returns:
- This builder for chaining.
-