public static final class LabelStats.Builder extends GeneratedMessageV3.Builder<LabelStats.Builder> implements LabelStatsOrBuilder
Statistics about annotation specs.
Protobuf type google.cloud.datalabeling.v1beta1.LabelStats
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LabelStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LabelStats build()
Returns
buildPartial()
public LabelStats buildPartial()
Returns
clear()
public LabelStats.Builder clear()
Returns
Overrides
clearExampleCount()
public LabelStats.Builder clearExampleCount()
Returns
clearField(Descriptors.FieldDescriptor field)
public LabelStats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LabelStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public LabelStats.Builder clone()
Returns
Overrides
containsExampleCount(String key)
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;
Parameter
Returns
getDefaultInstanceForType()
public LabelStats getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getExampleCount()
public Map<String,Long> getExampleCount()
Returns
getExampleCountCount()
public 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
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;
Returns
getExampleCountOrDefault(String key, long defaultValue)
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;
Parameters
Returns
getExampleCountOrThrow(String key)
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;
Parameter
Returns
getMutableExampleCount()
public Map<String,Long> getMutableExampleCount()
Use alternate mutation accessors instead.
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LabelStats other)
public LabelStats.Builder mergeFrom(LabelStats other)
Parameter
Returns
public LabelStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LabelStats.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LabelStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
putAllExampleCount(Map<String,Long> values)
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;
Parameter
Name | Description |
values | Map<String,java.lang.Long>
|
Returns
putExampleCount(String key, long value)
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;
Parameters
Returns
removeExampleCount(String key)
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;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public LabelStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LabelStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LabelStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides