Class LabelStats.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<LabelStats.Builder> implements LabelStatsOrBuilder
Statistics about annotation specs.
Protobuf typegoogle.cloud.datalabeling.v1beta1.LabelStats
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LabelStats.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LabelStatsbuild()LabelStatsbuildPartial()LabelStats.Builderclear()LabelStats.BuilderclearExampleCount()LabelStats.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)LabelStats.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)LabelStats.Builderclone()booleancontainsExampleCount(String key)Map of each annotation spec's example count.LabelStatsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,Long>getExampleCount()Deprecated.intgetExampleCountCount()Map of each annotation spec's example count.Map<String,Long>getExampleCountMap()Map of each annotation spec's example count.longgetExampleCountOrDefault(String key, long defaultValue)Map of each annotation spec's example count.longgetExampleCountOrThrow(String key)Map of each annotation spec's example count.Map<String,Long>getMutableExampleCount()Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()LabelStats.BuildermergeFrom(LabelStats other)LabelStats.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)LabelStats.BuildermergeFrom(com.google.protobuf.Message other)LabelStats.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)LabelStats.BuilderputAllExampleCount(Map<String,Long> values)Map of each annotation spec's example count.LabelStats.BuilderputExampleCount(String key, long value)Map of each annotation spec's example count.LabelStats.BuilderremoveExampleCount(String key)Map of each annotation spec's example count.LabelStats.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)LabelStats.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)LabelStats.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
clear
public LabelStats.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
getDefaultInstanceForType
public LabelStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public LabelStats build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LabelStats buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LabelStats.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
setField
public LabelStats.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
clearField
public LabelStats.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
clearOneof
public LabelStats.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
setRepeatedField
public LabelStats.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
addRepeatedField
public LabelStats.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
mergeFrom
public LabelStats.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LabelStats.Builder>
-
mergeFrom
public LabelStats.Builder mergeFrom(LabelStats other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LabelStats.Builder>- Throws:
IOException
-
getExampleCountCount
public int getExampleCountCount()
Description copied from interface:LabelStatsOrBuilderMap 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:
getExampleCountCountin interfaceLabelStatsOrBuilder
-
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:
containsExampleCountin interfaceLabelStatsOrBuilder
-
getExampleCount
@Deprecated public Map<String,Long> getExampleCount()
Deprecated.UsegetExampleCountMap()instead.- Specified by:
getExampleCountin interfaceLabelStatsOrBuilder
-
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:
getExampleCountMapin interfaceLabelStatsOrBuilder
-
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:
getExampleCountOrDefaultin interfaceLabelStatsOrBuilder
-
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:
getExampleCountOrThrowin interfaceLabelStatsOrBuilder
-
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;
-
setUnknownFields
public final LabelStats.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
mergeUnknownFields
public final LabelStats.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<LabelStats.Builder>
-
-