Class 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.GeneratedMessageV3.Builder<LabelStats.Builder>
    implements LabelStatsOrBuilder
     Statistics about annotation specs.
     
    Protobuf type google.cloud.datalabeling.v1beta1.LabelStats
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public LabelStats.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
      • setField

        public LabelStats.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
      • clearField

        public LabelStats.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
      • clearOneof

        public LabelStats.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
      • setRepeatedField

        public LabelStats.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
      • addRepeatedField

        public LabelStats.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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
      • 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;
      • setUnknownFields

        public final LabelStats.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
      • mergeUnknownFields

        public final LabelStats.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>