Interface Rollout.TrafficPercentStrategyOrBuilder (3.51.0)

public static interface Rollout.TrafficPercentStrategyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsPercentages(String key)

public abstract boolean containsPercentages(String key)

Maps service configuration IDs to their corresponding traffic percentage. Key is the service configuration ID, Value is the traffic percentage which must be greater than 0.0 and the sum must equal to 100.0.

map<string, double> percentages = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getPercentages() (deprecated)

public abstract Map<String,Double> getPercentages()

Use #getPercentagesMap() instead.

Returns
Type Description
Map<String,java.lang.Double>

getPercentagesCount()

public abstract int getPercentagesCount()

Maps service configuration IDs to their corresponding traffic percentage. Key is the service configuration ID, Value is the traffic percentage which must be greater than 0.0 and the sum must equal to 100.0.

map<string, double> percentages = 1;

Returns
Type Description
int

getPercentagesMap()

public abstract Map<String,Double> getPercentagesMap()

Maps service configuration IDs to their corresponding traffic percentage. Key is the service configuration ID, Value is the traffic percentage which must be greater than 0.0 and the sum must equal to 100.0.

map<string, double> percentages = 1;

Returns
Type Description
Map<String,java.lang.Double>

getPercentagesOrDefault(String key, double defaultValue)

public abstract double getPercentagesOrDefault(String key, double defaultValue)

Maps service configuration IDs to their corresponding traffic percentage. Key is the service configuration ID, Value is the traffic percentage which must be greater than 0.0 and the sum must equal to 100.0.

map<string, double> percentages = 1;

Parameters
Name Description
key String
defaultValue double
Returns
Type Description
double

getPercentagesOrThrow(String key)

public abstract double getPercentagesOrThrow(String key)

Maps service configuration IDs to their corresponding traffic percentage. Key is the service configuration ID, Value is the traffic percentage which must be greater than 0.0 and the sum must equal to 100.0.

map<string, double> percentages = 1;

Parameter
Name Description
key String
Returns
Type Description
double