Interface ServiceScalingOrBuilder (0.52.0)

public interface ServiceScalingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMinInstanceCount()

public abstract int getMinInstanceCount()

Optional. total min instances for the service. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.

int32 min_instance_count = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The minInstanceCount.

getScalingMode()

public abstract ServiceScaling.ScalingMode getScalingMode()

Optional. The scaling mode for the service.

.google.cloud.run.v2.ServiceScaling.ScalingMode scaling_mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceScaling.ScalingMode

The scalingMode.

getScalingModeValue()

public abstract int getScalingModeValue()

Optional. The scaling mode for the service.

.google.cloud.run.v2.ServiceScaling.ScalingMode scaling_mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for scalingMode.