Interface LabelStatsOrBuilder (0.162.0)

public interface LabelStatsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsExampleCount(String key)

public abstract boolean containsExampleCount(String key)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getExampleCount() (deprecated)

public abstract Map<String,Long> getExampleCount()

Use #getExampleCountMap() instead.

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

getExampleCountCount()

public abstract int getExampleCountCount()

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Returns
Type Description
int

getExampleCountMap()

public abstract Map<String,Long> getExampleCountMap()

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

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

getExampleCountOrDefault(String key, long defaultValue)

public abstract long getExampleCountOrDefault(String key, long defaultValue)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameters
Name Description
key String
defaultValue long
Returns
Type Description
long

getExampleCountOrThrow(String key)

public abstract long getExampleCountOrThrow(String key)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameter
Name Description
key String
Returns
Type Description
long