Interface ServiceScalingOrBuilder (0.55.0)

public interface ServiceScalingOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getManualInstanceCount()

public abstract int getManualInstanceCount()

Optional. total instance count for the service in manual scaling mode. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.

optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The manualInstanceCount.

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.

hasManualInstanceCount()

public abstract boolean hasManualInstanceCount()

Optional. total instance count for the service in manual scaling mode. This number of instances is divided among all revisions with specified traffic based on the percent of traffic they are receiving.

optional int32 manual_instance_count = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the manualInstanceCount field is set.