Interface LabelStatsOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    LabelStats, LabelStats.Builder

    public interface LabelStatsOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Detail

      • getExampleCountCount

        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;
      • containsExampleCount

        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;
      • getExampleCountMap

        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;
      • getExampleCountOrDefault

        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;
      • getExampleCountOrThrow

        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;