Interface ScoreDistributionOrBuilder (3.39.0)

public interface ScoreDistributionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsScoreBuckets(int key)

public abstract boolean containsScoreBuckets(int key)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameter
Name Description
key int
Returns
Type Description
boolean

getScoreBuckets() (deprecated)

public abstract Map<Integer,Long> getScoreBuckets()

Use #getScoreBucketsMap() instead.

Returns
Type Description
Map<Integer,java.lang.Long>

getScoreBucketsCount()

public abstract int getScoreBucketsCount()

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Returns
Type Description
int

getScoreBucketsMap()

public abstract Map<Integer,Long> getScoreBucketsMap()

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Returns
Type Description
Map<Integer,java.lang.Long>

getScoreBucketsOrDefault(int key, long defaultValue)

public abstract long getScoreBucketsOrDefault(int key, long defaultValue)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameters
Name Description
key int
defaultValue long
Returns
Type Description
long

getScoreBucketsOrThrow(int key)

public abstract long getScoreBucketsOrThrow(int key)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameter
Name Description
key int
Returns
Type Description
long