Interface ServiceScalingOrBuilder (0.52.0)

publicinterface ServiceScalingOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getMinInstanceCount()

publicabstractintgetMinInstanceCount()

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()

publicabstractServiceScaling.ScalingModegetScalingMode()

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()

publicabstractintgetScalingModeValue()

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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.