Class LabelStats.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LabelStats.Builder>
com.google.cloud.datalabeling.v1beta1.LabelStats.Builder
All Implemented Interfaces:
LabelStatsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LabelStats

public static final class LabelStats.Builder extends com.google.protobuf.GeneratedMessage.Builder<LabelStats.Builder> implements LabelStatsOrBuilder
 Statistics about annotation specs.
 
Protobuf type google.cloud.datalabeling.v1beta1.LabelStats
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LabelStats.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LabelStats.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LabelStats.Builder>
    • clear

      public LabelStats.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LabelStats.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LabelStats.Builder>
    • getDefaultInstanceForType

      public LabelStats getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public LabelStats build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LabelStats buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public LabelStats.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LabelStats.Builder>
    • mergeFrom

      public LabelStats.Builder mergeFrom(LabelStats other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<LabelStats.Builder>
    • mergeFrom

      public LabelStats.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LabelStats.Builder>
      Throws:
      IOException
    • getExampleCountCount

      public int getExampleCountCount()
      Description copied from interface: LabelStatsOrBuilder
       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;
      Specified by:
      getExampleCountCount in interface LabelStatsOrBuilder
    • containsExampleCount

      public 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;
      Specified by:
      containsExampleCount in interface LabelStatsOrBuilder
    • getExampleCount

      @Deprecated public Map<String,Long> getExampleCount()
      Deprecated.
      Specified by:
      getExampleCount in interface LabelStatsOrBuilder
    • getExampleCountMap

      public 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;
      Specified by:
      getExampleCountMap in interface LabelStatsOrBuilder
    • getExampleCountOrDefault

      public 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;
      Specified by:
      getExampleCountOrDefault in interface LabelStatsOrBuilder
    • getExampleCountOrThrow

      public 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;
      Specified by:
      getExampleCountOrThrow in interface LabelStatsOrBuilder
    • clearExampleCount

      public LabelStats.Builder clearExampleCount()
    • removeExampleCount

      public LabelStats.Builder removeExampleCount(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;
    • getMutableExampleCount

      @Deprecated public Map<String,Long> getMutableExampleCount()
      Deprecated.
      Use alternate mutation accessors instead.
    • putExampleCount

      public LabelStats.Builder putExampleCount(String key, long value)
       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;
    • putAllExampleCount

      public LabelStats.Builder putAllExampleCount(Map<String,Long> values)
       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;