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
public interface AutoscalerOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsScalingScheduleStatus(String key)
[Output Only] Status information of existing scaling schedules.AutoscalingPolicy
getAutoscalingPolicy()
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.String
getDescription()
An optional description of this resource.com.google.protobuf.ByteString
getDescriptionBytes()
An optional description of this resource.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.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.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).-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasAutoscalingPolicy
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;
- 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, 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;
- 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, 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;
-
hasCreationTimestamp
boolean hasCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- Whether the creationTimestamp field is set.
-
getCreationTimestamp
String getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
- Returns:
- The creationTimestamp.
-
getCreationTimestampBytes
com.google.protobuf.ByteString getCreationTimestampBytes()
[Output Only] Creation timestamp in RFC3339 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] 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] 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] 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] Type of the resource. Always compute#autoscaler for autoscalers.
optional string kind = 3292052;
- Returns:
- The kind.
-
getKindBytes
com.google.protobuf.ByteString getKindBytes()
[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 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;
- 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 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;
- 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 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;
- Returns:
- The bytes for name.
-
hasRecommendedSize
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;
- Returns:
- Whether the recommendedSize field is set.
-
getRecommendedSize
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;
- Returns:
- The recommendedSize.
-
hasRegion
boolean hasRegion()
[Output Only] URL of the region 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] URL of the region 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] URL of the region 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] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
-
containsScalingScheduleStatus
boolean containsScalingScheduleStatus(String key)
[Output Only] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
-
getScalingScheduleStatus
@Deprecated Map<String,ScalingScheduleStatus> getScalingScheduleStatus()
Deprecated.UsegetScalingScheduleStatusMap()
instead.
-
getScalingScheduleStatusMap
Map<String,ScalingScheduleStatus> getScalingScheduleStatusMap()
[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] Status information of existing scaling schedules.
map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
-
getScalingScheduleStatusOrThrow
ScalingScheduleStatus getScalingScheduleStatusOrThrow(String key)
[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 for Commonly returned status messages for examples of status messages you might encounter.
repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
-
getStatusDetails
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;
-
getStatusDetailsCount
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;
-
getStatusDetailsOrBuilderList
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;
-
getStatusDetailsOrBuilder
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;
-
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] URL of the zone 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] URL of the zone 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] URL of the zone where the instance group resides (for autoscalers living in zonal scope).
optional string zone = 3744684;
- Returns:
- The bytes for zone.
-
-