public static enum ServiceScaling.ScalingMode extends Enum<ServiceScaling.ScalingMode> implements com.google.protobuf.ProtocolMessageEnum
The scaling mode for the service. If not provided, it defaults to AUTOMATIC.Protobuf enum
google.cloud.run.v2.ServiceScaling.ScalingMode| Enum Constant and Description |
|---|
AUTOMATIC
Scale based on traffic between min and max instances.
|
MANUAL
Scale to exactly min instances and ignore max instances.
|
SCALING_MODE_UNSPECIFIED
Unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTOMATIC_VALUE
Scale based on traffic between min and max instances.
|
static int |
MANUAL_VALUE
Scale to exactly min instances and ignore max instances.
|
static int |
SCALING_MODE_UNSPECIFIED_VALUE
Unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceScaling.ScalingMode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ServiceScaling.ScalingMode> |
internalGetValueMap() |
static ServiceScaling.ScalingMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ServiceScaling.ScalingMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ServiceScaling.ScalingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceScaling.ScalingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceScaling.ScalingMode SCALING_MODE_UNSPECIFIED
Unspecified.
SCALING_MODE_UNSPECIFIED = 0;public static final ServiceScaling.ScalingMode AUTOMATIC
Scale based on traffic between min and max instances.
AUTOMATIC = 1;public static final ServiceScaling.ScalingMode MANUAL
Scale to exactly min instances and ignore max instances.
MANUAL = 2;public static final ServiceScaling.ScalingMode UNRECOGNIZED
public static final int SCALING_MODE_UNSPECIFIED_VALUE
Unspecified.
SCALING_MODE_UNSPECIFIED = 0;public static final int AUTOMATIC_VALUE
Scale based on traffic between min and max instances.
AUTOMATIC = 1;public static final int MANUAL_VALUE
Scale to exactly min instances and ignore max instances.
MANUAL = 2;public static ServiceScaling.ScalingMode[] values()
for (ServiceScaling.ScalingMode c : ServiceScaling.ScalingMode.values()) System.out.println(c);
public static ServiceScaling.ScalingMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ServiceScaling.ScalingMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ServiceScaling.ScalingMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ServiceScaling.ScalingMode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ServiceScaling.ScalingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.