Package com.google.cloud.compute.v1
Interface AutoscalerOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Autoscaler,Autoscaler.Builder
@Generated
public interface AutoscalerOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanOutput only.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.longgetId()Output only.getKind()Output only.com.google.protobuf.ByteStringOutput only.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.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasAutoscalingPolicy
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;- Returns:
- Whether the autoscalingPolicy field is set.
-
getAutoscalingPolicy
AutoscalingPolicy 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;- Returns:
- The autoscalingPolicy.
-
getAutoscalingPolicyOrBuilder
AutoscalingPolicyOrBuilder 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; -
hasCreationTimestamp
boolean hasCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
String getCreationTimestamp()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
com.google.protobuf.ByteString getCreationTimestampBytes()Output only. [Output Only] Creation timestamp inRFC3339 text format.
optional string creation_timestamp = 30525366;- Returns:
- The bytes for creationTimestamp.
-
hasDescription
boolean hasDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- Whether the description field is set.
-
getDescription
String getDescription()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;- Returns:
- The bytes for description.
-
hasId
boolean hasId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- Whether the id field is set.
-
getId
long getId()Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
optional uint64 id = 3355;- Returns:
- The id.
-
hasKind
boolean hasKind()Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Returns:
- Whether the kind field is set.
-
getKind
String getKind()Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Returns:
- The kind.
-
getKindBytes
com.google.protobuf.ByteString getKindBytes()Output only. [Output Only] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;- Returns:
- The bytes for kind.
-
hasName
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;- Returns:
- Whether the name field is set.
-
getName
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 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:
- The name.
-
getNameBytes
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;- Returns:
- The bytes for name.
-
hasRecommendedSize
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;- Returns:
- Whether the recommendedSize field is set.
-
getRecommendedSize
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;- Returns:
- The recommendedSize.
-
hasRegion
boolean hasRegion()Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;- Returns:
- Whether the region field is set.
-
getRegion
String getRegion()Output only. [Output Only] URL of theregion where the instance group resides (for autoscalers living in regional scope).
optional string region = 138946292;- Returns:
- The region.
-
getRegionBytes
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;- Returns:
- The bytes for region.
-
getScalingScheduleStatusCount
int getScalingScheduleStatusCount()Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178; -
containsScalingScheduleStatus
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178; -
getScalingScheduleStatus
Deprecated.UsegetScalingScheduleStatusMap()instead. -
getScalingScheduleStatusMap
Map<String,ScalingScheduleStatus> getScalingScheduleStatusMap()Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178; -
getScalingScheduleStatusOrDefault
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; -
getScalingScheduleStatusOrThrow
Output only. [Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178; -
hasSelfLink
boolean hasSelfLink()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- Whether the selfLink field is set.
-
getSelfLink
String getSelfLink()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- The selfLink.
-
getSelfLinkBytes
com.google.protobuf.ByteString getSelfLinkBytes()[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;- Returns:
- The bytes for selfLink.
-
hasStatus
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;- Returns:
- Whether the status field is set.
-
getStatus
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;- Returns:
- The status.
-
getStatusBytes
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;- Returns:
- The bytes for status.
-
getStatusDetailsList
List<AutoscalerStatusDetails> 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; -
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; -
getStatusDetailsCount
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; -
getStatusDetailsOrBuilderList
List<? extends AutoscalerStatusDetailsOrBuilder> 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; -
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; -
hasTarget
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;- Returns:
- Whether the target field is set.
-
getTarget
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;- Returns:
- The target.
-
getTargetBytes
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;- Returns:
- The bytes for target.
-
hasZone
boolean hasZone()Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;- Returns:
- Whether the zone field is set.
-
getZone
String getZone()Output only. [Output Only] URL of thezone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;- Returns:
- The zone.
-
getZoneBytes
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;- Returns:
- The bytes for zone.
-