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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LabelStats.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LabelStats build()
buildPartial()
public LabelStats buildPartial()
clear()
public LabelStats.Builder clear()
Overrides
clearExampleCount()
public LabelStats.Builder clearExampleCount()
clearField(Descriptors.FieldDescriptor field)
public LabelStats.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LabelStats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public LabelStats.Builder clone()
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 |
---|
Name | Description |
key | String
|
getDefaultInstanceForType()
public LabelStats getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getExampleCount() (deprecated)
public Map<String,Long> getExampleCount()
Returns |
---|
Type | Description |
Map<String,java.lang.Long> | |
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 |
---|
Type | Description |
int | |
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 |
---|
Type | Description |
Map<String,java.lang.Long> | |
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 |
---|
Name | Description |
key | String
|
defaultValue | long
|
Returns |
---|
Type | Description |
long | |
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 |
---|
Name | Description |
key | String
|
Returns |
---|
Type | Description |
long | |
getMutableExampleCount() (deprecated)
public Map<String,Long> getMutableExampleCount()
Use alternate mutation accessors instead.
Returns |
---|
Type | Description |
Map<String,java.lang.Long> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LabelStats other)
public LabelStats.Builder mergeFrom(LabelStats other)
public LabelStats.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LabelStats.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LabelStats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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>
|
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;
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 |
---|
Name | Description |
key | String
|
setField(Descriptors.FieldDescriptor field, Object value)
public LabelStats.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LabelStats.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LabelStats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides